span.sizeThreshold_mod,
label.sizeThreshold_mod {
    font-size: unset !important;
    font-weight: unset !important;
    margin-top: 8px !important;
    display: block !important;
}
.list_or_chart {
    padding: 0px 0 6px;
}
label.sizeThreshold_mod {
    font-size: unset !important;
    font-weight: unset !important;
    margin-top: 8px !important;
}
button.extract {
    font-family: 'Poppins';
    font-weight: 700;
    font-size: 20px;
    border-radius: 7px;
    background: #e8f5e8;
    border-color: #79d479;
}
.extract_div {
    height: 112px;
    padding: 55px 0 0 22px;
}
.container {
    margin-bottom: 100px;
}
.success-summary span {
    font-size: 75%;
    margin-top: -2px;
    display: block;
    float: left;
}
.large-images-section.green, .success-summary {
    background-color: #e8f5e8;
    padding: 5px;
    border-radius: 0;
    margin: 0;
    border-left: unset !important;
    margin-bottom: 10px;
}
.success-summary.box {
    margin-bottom: 10px;
    height: 66px;
}
.success-summary-box-1 {
    width: 267px;
    float: left;
}
.success-summary-box-2 {
    margin-top: 5px;
    width: 317px;
    float: left;
}
.large-images-section.green h4 {
    padding: 5px;
}
.large-images-section.green h4 {
    padding: 5px;
    margin-bottom: 0;
}

/* View Toggle Section */
.view-toggle-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.view-toggle-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-toggle-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-toggle-btn:hover {
    background: #f8f9fa;
    border-color: #4CAF50;
}

.view-toggle-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.view-toggle-btn.active:hover {
    background: #45a049;
}

/* Images Table View Styles */
.images-table-view {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-container {
    overflow-x: auto;
    background: white;
}

.images-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.images-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.images-table thead th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #5a67d8;
}

.images-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.images-table tbody tr:hover {
    background-color: #f8f9fa;
}

.images-table tbody tr:last-child {
    border-bottom: none;
}

.images-table tbody td {
    padding: 12px;
    vertical-align: middle;
}

/* Table Cell Specific Styles */
.preview-cell {
    width: 80px;
    text-align: center;
}

/* Updated table-thumbnail to match large-image-thumbnail style */
.table-thumbnail {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #9ed2ef;
    margin: 0 auto;
    flex-shrink: 0;
}

.table-thumbnail img {
    max-width: 44px; /* Reduced from 46px to account for thicker border */
    max-height: 44px; /* Reduced from 46px to account for thicker border */
    border-radius: 50%; /* Changed from 4px to 50% for circular images */
}

.table-thumbnail-error {
    color: #666;
    font-size: 10px;
    text-align: center;
    padding: 2px;
}

.source-cell {
    width: 90px;
}

.source-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.html-badge {
    background: #e3f2fd;
    color: #1565c0;
}

.css-badge {
    background: #fce4ec;
    color: #ad1457;
}

.dimensions-cell {
    width: 120px;
}

.dimension-value {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f8f9fa;
    padding: 3px 6px;
    border-radius: 4px;
    color: #495057;
}

.size-cell {
    width: 90px;
}

.size-value {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.size-small {
    background: #e8f5e8;
    color: #2e7d32;
}

.size-medium {
    background: #fff3e0;
    color: #f57c00;
}

.size-large {
    background: #ffebee;
    color: #c62828;
}

.type-cell {
    width: 70px;
}

.type-value {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: bold;
    color: #666;
    background: #f1f3f4;
    padding: 3px 6px;
    border-radius: 4px;
}

.ratio-cell {
    width: 80px;
}

.ratio-value {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #495057;
}

.url-cell {
    min-width: 200px;
    max-width: 300px;
}

.url-display {
    max-width: 100%;
    overflow: hidden;
}

.url-text {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.url-text:hover {
    color: #2196F3;
    cursor: pointer;
}

.actions-cell {
    width: 90px;
    text-align: center;
}

.table-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.table-action-btn:hover {
    background-color: #1976D2;
    color: white;
    text-decoration: none;
}

.unknown-value {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

/* Original styles continue below... */

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}
.form-group {
    margin-bottom: 20px;
}
.result {
    margin-top: 30px;
}
.error {
    background-color: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}
.large-images-section {
    background-color: #fff3e0;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 5px solid #ff9800;
}
.large-images-section h4 {
    margin: 0 0 15px 0;
    color: #e65100;
    font-size: 18px;
}
.large-image-item {
    margin-bottom: 4px;
    padding: 4px;
    border-bottom: 1px solid #ffe0b2;
    display: flex;
    align-items: center;
    gap: 15px;
}
.large-image-item:last-child {
    border-bottom: none;
}
.large-image-thumbnail {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #9ed2ef;
}
.large-image-thumbnail img {
    max-width: 75px;
    max-height: 75px;
    border-radius: 3px;
}
.large-image-thumbnail-error {
    color: #666;
    font-size: 10px;
    text-align: center;
    padding: 5px;
}
.large-image-url {
    color: #1976d2;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}
.large-image-url:hover {
    text-decoration: underline;
}
.large-image-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pill {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}
.pill-size-large {
    background: #ffebee;
    color: #c62828;
}
.pill-size-medium {
    background: #fff3e0;
    color: #f57c00;
}
.pill-size-small {
    background: #e8f5e8;
    color: #2e7d32;
}
.pill-dim-large {
    background: #fce4ec;
    color: #ad1457;
}
.pill-dim-medium {
    background: #f3e5f5;
    color: #7b1fa2;
}
.pill-dim-small {
    background: #e3f2fd;
    color: #1565c0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.stat-card {
    background: #e8f5e8;
    padding: 0px;
    border-radius: 8px;
    text-align: center;
    display: block;
    width: 10%;
    float: right;
    border: 2px solid #5ea50f;
    margin: 2px;
}
.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}
.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.image-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 31%;
    float: left;
    margin: 1%;
}
.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}
.css-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.thumbnail-container {
    width: 100%;
    height: 120px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.thumbnail {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
}
.thumbnail-error {
    color: #666;
    font-size: 12px;
    text-align: center;
}
.card-content {
    padding: 15px;
}
.image-info {
    font-size: 14px;
    line-height: 1.5;
}
.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}
.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.info-label {
    font-weight: bold;
    color: #555;
}
.info-value {
    color: #333;
    text-align: right;
}
.image-url {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.image-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background-color 0.2s;
}
.image-link:hover {
    background-color: #1976D2;
}
.url-text {
    font-size: 11px;
    color: #666;
    word-break: break-all;
    margin-top: 5px;
    line-height: 1.3;
}
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}
.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}
.filter-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.filter-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-tab.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}
.filter-tab:hover {
    background: #f5f5f5;
}
.filter-tab.active:hover {
    background: #45a049;
}
.size-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.size-filter label {
    font-weight: bold;
    color: #555;
    margin: 0;
}
.size-filter input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100px;
    font-size: 14px;
}
.size-filter input:focus {
    border-color: #4CAF50;
    outline: none;
}
.size-filter-btn {
    padding: 8px 16px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}
.size-filter-btn:hover {
    background: #1976D2;
}
.filter-reset {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}
.filter-reset:hover {
    background: #545b62;
}
.active-filters {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}
.filter-badge {
    display: inline-block;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
    margin-right: 8px;
    font-size: 12px;
    color: #495057;
}
.images-list {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}
.images-list.show {
    display: block;
}
.images-list h4 {
    margin: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    color: #333;
    font-size: 16px;
}
.image-list-item {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.image-list-item:last-child {
    border-bottom: none;
}
.image-list-item:hover {
    background: #f8f9fa;
}
.image-url-text {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #666;
    word-break: break-all;
    flex: 1;
    margin-right: 15px;
}
.image-size-badge {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}
.large-size {
    background: #ffebee;
    color: #c62828;
}
.medium-size {
    background: #fff3e0;
    color: #f57c00;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .images-table {
        font-size: 12px;
    }

    .images-table thead th {
        padding: 12px 8px;
        font-size: 11px;
    }

    .images-table tbody td {
        padding: 10px 8px;
    }

    .url-cell {
        max-width: 200px;
    }

    .url-text {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .view-toggle {
        flex-direction: column;
    }

    .view-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .table-container {
        font-size: 11px;
    }

    .images-table thead th {
        padding: 10px 6px;
        font-size: 10px;
    }

    .images-table tbody td {
        padding: 8px 6px;
    }

    .table-thumbnail {
        width: 40px;
        height: 40px;
    }

    .table-thumbnail img {
        max-width: 36px;
        max-height: 36px;
    }

    .url-cell {
        max-width: 150px;
    }

    .url-text {
        max-width: 130px;
        font-size: 10px;
    }

    .table-action-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    /* Hide some columns on very small screens */
    .ratio-cell,
    .type-cell {
        display: none;
    }
}

@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .filter-tabs {
        flex-direction: column;
    }
    .size-filter {
        flex-direction: column;
        align-items: stretch;
    }
    .size-filter input {
        width: 100%;
        margin-bottom: 10px;
    }
    .size-filter-btn, .filter-reset {
        width: 100%;
        margin-bottom: 5px;
    }
    .image-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .image-url-text {
        margin-right: 0;
        font-size: 12px;
    }
    .image-size-badge {
        align-self: flex-end;
    }
    .large-image-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .large-image-thumbnail {
        align-self: center;
    }
    .large-image-url {
        min-width: unset;
        font-size: 12px;
        word-break: break-all;
    }
    .large-image-pills {
        align-self: flex-start;
    }

    /* Table becomes more compact on mobile */
    .table-container {
        overflow-x: scroll;
    }

    .dimensions-cell,
    .ratio-cell {
        display: none;
    }
}

/* Original body styles */
body#Image-URL-Analyzer input#page_url {
    width: 100%;
    max-width: 100%;
}
body#Image-URL-Analyzer input#image_url {
    width: 100%;
    max-width: 515px;
    padding: 3px 3px 3px 8px;
}
body#Image-URL-Analyzer .jumbotron p,
body#Image-URL-Analyzer .jumbotron h1 {
    padding-left: 0;
}
body#Image-URL-Analyzer .jumbotron {
    color: white;
    background-image: url("https://nineteen53.com/images/pexels-tinthia-clemant-16649-1557208.1000x498.jpg");
    max-height: 222px;
    margin-bottom: 11px;
}
body#Image-URL-Analyzer .jumbotron p,
body#Image-URL-Analyzer .jumbotron h1 {
    padding-left: 2% !important;
}
.info-item.big {
    font-size: 25px;
}
body#Image-URL-Analyzer label {
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
    display: block;
    font-size: 20px;
    margin-top: 28px;
}

@media (min-width: 1200px) {
    body#Image-URL-Analyzer .jumbotron p,
    body#Image-URL-Analyzer .jumbotron h1 {
        margin: 18px 0 0 5% !important;
    }
}

@media (max-width: 500px) {
  body#Image-URL-Analyzer .container {
      padding: 0 15px;
      height: 100%;
      overflow: visible;
  }
}
