/* Dashboard Styles - Premium Cyber Analysis Dashboard */

/* Text color guide:
   - .dashboard-container: base page text color
   - .summary-card h3: summary stat number color
   - .summary-card p: summary label text color
   - .categories-list .category-name: category label text
   - .categories-list .category-count: category count label
   - .review-link: small tag/link text
   - .actress-name: actress card title text
   - .actress-actions .view-details-btn: detail button text
   - .detail-articles a: modal article link text
   - .percentage-label: modal percent label text
*/

.dashboard-container {
    max-width: calc(100% - 40px);
    margin: 20px; /* create 20px gap on all sides */
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #E5E7EB;
    background: linear-gradient(135deg, #0F172A 0%, #111827 50%, #020617 100%);
    min-height: 100vh;
    position: relative;
}

.dashboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Hide section headings for seamless design */
.dashboard-container h2 {
    display: none;
}

/* Summary Section - Glassmorphism Cards */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Ensure the header (name + total scenes) is visible on non-mobile layouts.
   Some cached/minified CSS contained a global `display:none` for
   `.actress-header`; add a higher-specificity override to restore it. */
@media (min-width: 769px) {
    .actress-card .actress-header {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(56, 189, 248, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.1), transparent);
    transition: left 0.6s;
}

.summary-card:hover::before {
    left: 100%;
}

.summary-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.3);
}

.summary-card h3 {
    font-size: 2.8em;
    margin: 0 0 12px 0;
    font-weight: 200;
    color: #38BDF8; /* summary headline number color */
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.summary-card p {
    margin: 0;
    font-size: 1.1em;
    color: #E5E7EB; /* summary description text color */
    font-weight: 400;
}

/* Main Dashboard Grid */
.dashboard-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .dashboard-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Categories Section - Left Side */
.categories-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                0 0 15px rgba(34, 211, 238, 0.08);
    position: relative;
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #38BDF8, #22D3EE, #60A5FA);
}

.categories-chart-container {
    height: 320px;
    margin-bottom: 24px;
    position: relative;
}

.categories-list {
    margin-top: 24px;
}

.categories-list .category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 14px; /* add horizontal and vertical padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 8px 0; /* add vertical spacing between items */
}

/* Prevent wrapping so review button stays on same line */
.categories-list .category-link {
    flex-wrap: nowrap;
}

.categories-list .category-link:hover {
    background: rgba(56, 189, 248, 0.05);
    border-bottom-color: rgba(56, 189, 248, 0.2);
    transform: translateX(4px);
}

.categories-list .category-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* allow inner flex child to shrink so sibling button can sit on same row */
.categories-list .category-info {
    min-width: 0;
}

.categories-list .category-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categories-list .category-link .category-name {
    font-weight: 500;
    color: #E5E7EB; /* category label text color */
}

.categories-list .category-link .category-count {
    color: #E5E7EB; /* category count text color */
    font-weight: 600;
    font-size: 0.9em;
}

.categories-list .review-link,
.category-link .review-link,
#categories-list .review-link {
    display: inline-block;
    color: #0F172A;
    background: linear-gradient(135deg, #38BDF8 0%, #22D3EE 100%);
    text-decoration: none;
    font-size: 0.85em;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
}

.categories-list .review-link:hover,
.category-link .review-link:hover,
#categories-list .review-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

/* Ensure review link is pushed to the far right in flex row */
.category-link .review-link {
    margin-left: auto;
}

/* Decrease-display button styling to match load-more */
#decrease-display-btn {
    background: linear-gradient(135deg, #f87171 0%, #fb7185 100%);
    color: #0F172A;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.15);
}

#decrease-display-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 113, 113, 0.2);
}

/* Actresses Section - Right Side */
    /* make the card itself slightly narrower than outer container and
       increase internal space for the right column while keeping the
       avatar column a bit larger for readability */
    .actress-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
        max-width: calc(100% - 24px); /* keep inside outer frame */
        margin: 0 auto;
        box-sizing: border-box;
    }

    .actress-avatar-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 112px;
        min-width: 112px;
    }

    .actress-avatar-image {
        width: 112px;
        height: 112px;
    }

    .actress-left-header {
        width: 112px;
        margin-top: 8px;
        text-align: left;
    }
.search-container {
    margin-bottom: 28px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.search-container label {
    font-weight: 500;
    color: #E5E7EB;
    font-size: 0.9em;
}

#search-input {
    flex: 1;
    min-width: 240px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #E5E7EB;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#search-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.controls-left {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.controls label {
    font-weight: 500;
    color: #E5E7EB;
    margin-right: 8px;
    font-size: 0.9em;
}

#sort-select,
#category-filter {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    color: #E5E7EB;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

#sort-select:focus,
#category-filter:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

#load-more-container {
    display: flex;
    justify-content: flex-end;
}

#load-more-btn {
    background: linear-gradient(135deg, #38BDF8 0%, #22D3EE 100%);
    color: #0F172A;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.3);
    background: linear-gradient(135deg, #22D3EE 0%, #38BDF8 100%);
}

/* Actress Cards */
.actress-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
                0 0 8px rgba(96, 165, 250, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    width: calc(100% - 40px);
    max-width: 820px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.actress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.05), transparent);
    transition: left 0.5s;
}

.actress-card:hover::before {
    left: 100%;
}

.actress-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
                0 0 16px rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
}

.actress-avatar-wrapper {
    width: 100px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actress-avatar-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.actress-card-body {
    width: 100%;
}

.actress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* left-header is hidden by default (desktop) */
.actress-left-header {
    display: none;
}

.actress-name {
    font-size: 1.3em;
    margin: 0;
    color: #E5E7EB; /* actress title text color */
    font-weight: 600;
}

.total-scenes {
    color: #0F172A;
    font-weight: 700;
    font-size: 0.85em;
    background: linear-gradient(135deg, #38BDF8 0%, #22D3EE 100%);
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
}

.category-breakdown {
    margin-bottom: 12px;
}

.category-tag {
    display: inline-block;
    background: rgba(96, 165, 250, 0.1);
    color: #60A5FA;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8em;
    margin-right: 6px;
    margin-bottom: 4px;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.actress-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.view-details-btn {
    background: rgba(34, 211, 238, 0.1);
    color: #22D3EE;
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.5);
    transform: scale(1.05);
}

.actress-actions .review-link {
    font-size: 0.85em;
    padding: 6px 14px;
    border-radius: 18px;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38BDF8;
}

.actress-actions .review-link:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.15);
    margin: 4% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 820px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55),
                0 0 40px rgba(56, 189, 248, 0.12);
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.actress-detail-main {
    padding: 32px 32px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.actress-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.9);
    border-radius: 24px 24px 0 0;
}

.actress-detail-header h3 {
    margin: 0;
    color: #E5E7EB;
    font-size: 1.6em;
    font-weight: 300;
}

.close-modal {
    font-size: 24px;
    font-weight: bold;
    color: #CBD5E1;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.close-modal:hover {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.1);
    transform: scale(1.1);
}

.actress-detail-main {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    align-items: flex-start;
}

.actress-detail-avatar {
    flex-shrink: 0;
}

.actress-detail-avatar img {
    border-radius: 12px;
    max-width: 140px;
}

.actress-detail-content {
    padding: 32px 32px 36px;
}

.detail-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.82);
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, 0.12);
}

.detail-summary p {
    margin: 0;
    font-weight: 500;
    color: #F8FAFC;
}

.detail-categories h4 {
    margin-bottom: 16px;
    color: #F8FAFC;
    border-bottom: 2px solid rgba(56, 189, 248, 0.4);
    padding-bottom: 8px;
    font-weight: 300;
}

.detail-categories {
    padding: 28px 32px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.detail-articles h4 {
    margin-bottom: 16px;
    color: #F8FAFC;
    border-bottom: 2px solid rgba(34, 211, 238, 0.4);
    padding-bottom: 8px;
    font-weight: 300;
}

.detail-articles {
    padding: 28px 32px;
}

.detail-articles a {
    color: #38BDF8; /* article link text color in modal */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.detail-articles a:hover {
    color: #22D3EE;
}

.article-scenes {
    color: #E5E7EB;
    font-size: 0.95em;
    font-weight: normal;
}

/* Percentage Bars */
.percentage-bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.percentage-bar-row .category-name {
    min-width: 120px;
    color: #E5E7EB;
    font-weight: 500;
    font-size: 0.95em;
}

.percentage-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.percentage-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #38BDF8 0%, #22D3EE 100%);
    border-radius: 20px;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.percentage-label {
    color: #E5E7EB; /* percentage label text color */
    font-size: 0.9em;
    min-width: 50px;
    text-align: right;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 60px;
    color: #E5E7EB;
    font-size: 1.1em;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #38BDF8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 12px;
    }

    .dashboard-summary {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .summary-card {
        padding: 24px 20px;
    }

    .summary-card h3 {
        font-size: 2.2em;
    }

    /* Mobile: keep the card inside its container; allow a slightly
       larger avatar column to improve readability on narrow screens */
    .actress-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    .actress-avatar-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 112px;
        min-width: 112px;
    }

    .actress-avatar-image {
        width: 112px;
        height: 112px;
    }

    .actress-left-header {
        width: 112px;
        margin-top: 8px;
        text-align: left;
    }

    .actress-name {
        font-size: 1.1em;
    }

    /* Mobile: hide the right-side header and show the left header under avatar */
    .actress-header {
        display: none;
    }

    .actress-left-header {
        display: block;
        margin-top: 8px;
        text-align: left;
    }

    .actress-left-header .actress-name {
        font-size: 1.05em;
        margin: 0 0 6px 0;
    }

    .actress-left-header .total-scenes {
        font-size: 0.85em;
        padding: 4px 8px;
        text-align: left;
        display: block;
    }

    /* ensure right column can shrink and category tags wrap */
    .actress-card-body {
        min-width: 0;
    }

    .category-breakdown {
        width: 100%;
        white-space: normal;
    }

    /* force each category tag to wrap when needed */
    .category-tag {
        display: inline-block;
        word-break: break-word;
        white-space: normal;
        margin-right: 6px;
        margin-bottom: 6px;
    }

    .actress-card .category-tag {
        font-size: 0.75em;
    }

    /* Stack category name/count and review link vertically on narrow screens */
    .categories-list .category-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .categories-list .category-link .category-info {
        width: 100%;
    }

    .categories-list .category-link .review-link {
        margin-left: 0;
        margin-top: 0;
        display: inline-block;
        text-align: left;
        align-self: flex-start;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .controls-left {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    #search-input {
        min-width: auto;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 90vh;
    }

    .actress-detail-header {
        padding: 20px;
    }

    .actress-detail-content {
        padding: 20px;
    }

    .detail-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .percentage-bar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .percentage-bar-row .category-name {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 16px;
    }

    .summary-card {
        padding: 20px 16px;
    }

    .summary-card h3 {
        font-size: 1.8em;
    }

    .actress-card {
        padding: 14px;
    }

    .category-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .category-link .category-count {
        margin-right: 0;
    }
}

/* Smartphones: force 3 summary cards per row */
@media (max-width: 420px) {
    .dashboard-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .summary-card {
        padding: 12px 10px;
    }

    .summary-card h3 {
        font-size: 1.4em;
    }
}

/* Print Styles */
@media print {
    .modal,
    .view-details-btn,
    #load-more-btn,
    .controls {
        display: none !important;
    }

    .dashboard-container {
        max-width: none;
        padding: 0;
        background: white;
        color: black;
    }

    .actress-card,
    .summary-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
    }
}

/* Strong overrides: keep category row on one line and right-align the review button */
.categories-list .category-link,
.category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 8px 12px;
}

.categories-list .category-link .category-info,
.category-link .category-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0; /* allow shrink/ellipsis */
    overflow: hidden;
}

.category-link .category-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-link .category-count {
    white-space: nowrap;
    flex: 0 0 auto;
    margin-left: 6px;
    color: #E5E7EB;
}

.category-link .review-link {
    margin-left: auto !important;
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: linear-gradient(180deg,#2563eb,#3b82f6);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

/* Keep mobile behavior: small screens may stack; existing media rules still apply */

/* Dashboard header styles */
.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.dashboard-title {
    margin: 0;
    font-size: 1.8em;
    color: #F8FAFC;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dashboard-updated {
    color: #9CA3AF;
    font-size: 0.95em;
}
