/* ===== CRITICAL CSS - Prevenir flash de contenido ===== */
html {
    width: 100%;
    height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f7f7f5;
    color: #1a1a1a;
    font-size: 14px;
    overflow-x: hidden;
    width: 100%;
    min-width: 100vw;
}

/* Prevenir layout shift */
.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e5e5e0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* ===== ELEGANT SIDEBAR STYLES ===== */

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0px 24px 31px 24px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 23px;
    margin-top: 18px;  /* ← AGREGA ESTA LÍNEA */
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f9fafb;
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.025em;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    position: relative;
}

.nav-link:hover {
    background: #f9fafb;
    color: #111827;
}

.nav-link.active {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3b82f6;
    border-radius: 0 2px 2px 0;
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.nav-link span {
    flex: 1;
}

/* Section Headers */
.nav-section {
    margin: 24px 0 8px 0;
    padding: 0 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Language Selector in Sidebar */
.nav-link--language {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: default;
}

.language-dropdown {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    padding: 0;
}

.language-dropdown:hover {
    color: #111827;
}

.language-dropdown:focus {
    outline: none;
}

/* Credits Widget in Sidebar - Minimal */
.nav-credits {
    padding: var(--spacing-sm, 8px) var(--spacing-md, 16px);
    margin: 0 16px 8px 16px;
}

.nav-credits__link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm, 8px);
    text-decoration: none;
    color: inherit;
}

.nav-credits__icon {
    color: var(--text-muted, #9ca3af);
    flex-shrink: 0;
}

.nav-credits__info {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex: 1;
}

.nav-credits__balance {
    font-size: var(--font-size-sm, 14px);
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.nav-credits__label {
    font-size: var(--font-size-xs, 12px);
    color: var(--text-muted, #9ca3af);
}

.nav-credits__add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--text-muted, #9ca3af);
    flex-shrink: 0;
    transition: color var(--transition-fast, 150ms);
}

.nav-credits__link:hover .nav-credits__add {
    color: var(--primary-blue, #3b82f6);
}

/* Low balance warning state */
.nav-credits--low .nav-credits__balance {
    color: var(--error, #ef4444);
}

.nav-credits--low .nav-credits__icon {
    color: var(--error, #ef4444);
}

/* User Section at Bottom of Sidebar */
.nav-user {
    margin-top: auto;
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-user__info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.nav-user__avatar {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

.nav-user__details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nav-user__name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user__avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-user__plan {
    font-size: 9px;
    font-weight: 600;
    color: var(--ax-color-primary, #3b82f6);
    background: var(--ax-color-primary-light, #eff6ff);
    padding: 1px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nav-user__email {
    font-size: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-user__logout:hover {
    background: #fef2f2;
    color: #ef4444;
}

.nav-user__login {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.nav-user__login:hover {
    background: #1e40af;
}

.nav-user__login .nav-icon {
    width: 18px;
    height: 18px;
}

/* ===== REST OF CSS ===== */

/* Main Content Area */
main {
    flex: 1;
    padding: 32px;
    background-color: #ffffff;
    min-height: 100vh;
    overflow-y: auto;
    width: 100%;
    max-width: none;
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 16px 0;
    }
    
    main {
        padding: 20px;
    }
}

/* Enhanced Header Styles */
.header {
    background: none;
    padding: 0 32px;
    margin-bottom: 32px;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e5e7eb;
}

.header-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.025em;
}

.header-info p {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 0 0;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Enhanced Button Styles */
.btn {
    background: #111827;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Button Sizes */
.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
}

.btn-lg {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Button Variants */
.btn-primary {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary.btn-sm {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
}

.btn-primary.btn-sm:hover {
    background: #2563eb;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary.btn-sm {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
}

.btn-secondary.btn-sm:hover {
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

.btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.btn-danger.btn-sm {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
}

.btn-danger.btn-sm:hover {
    background: #fee2e2;
    color: #b91c1c;
    text-decoration: none;
}

.btn-secondary-outline {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-black {
    background-color: #111827;
    color: white;
    border: none;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 8px;
    font-size: 14px;
}

.btn-black:hover {
    background-color: #000;
}

.btn-chat {
    background: #A5FDFE;
    color: #000000;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}

.btn-chat:hover {
    background: #8af3f5;
}

.btn-topbar {
    background: #fff;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-topbar:hover {
    background: #f9fafb;
}

.btn-primary-topbar {
    background: #111827;
    color: #fff;
    border: none;
}

.btn-primary-topbar:hover {
    background: #000;
}

.btn-disabled {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e5e5e0;
    border-radius: 8px;
    background: #f4f4f4;
    color: #999;
    font-weight: 500;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Card Styles */
.card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

/* Section Titles */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}

/* Stats */
.stats {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    border: 1px solid #e5e5e0;
}

/* Avatar Cards */
.avatars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    align-items: start;
    max-width: 100%;
}

.avatar-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e5e0;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.avatar-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.avatar-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avatar-card-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.avatar-card-title .date {
    font-size: 12px;
    color: #6b7280;
}

.avatar-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.avatar-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.avatar-date {
    font-size: 12px;
    color: #6b7280;
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.meta-tag {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
}

.avatar-preview {
    font-size: 13px;
    color: #374151;
    margin: 12px 0;
    line-height: 1.4;
}

.avatar-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 12px 0;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.avatar-stats-grid strong {
    display: block;
    font-size: 15px;
    color: #111827;
}

.avatar-sample {
    margin: 10px 0;
    font-size: 13px;
    color: #374151;
    display: flex;
    justify-content: space-between;
}

.avatar-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* ===== FILTROS MINIMALISTAS PARA AVATAR LIBRARY ===== */
.filters-container {
    margin-bottom: 24px;
    padding: 0 32px;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.category-tabs {
    display: flex;
    gap: 0;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.category-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.category-tab:first-child {
    padding-left: 0;
}

.category-tab:hover {
    color: #374151;
}

.category-tab.active {
    color: #1f2937;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1f2937;
    border-radius: 1px;
}

.category-tab:first-child.active::after {
    left: 0;
    right: 0;
}

/* ===== BULK ACTIONS IN FILTERS ROW ===== */
.bulk-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ===== AVATAR SELECTION ===== */
.avatar-select {
    display: flex;
    align-items: center;
}

.avatar-checkbox {
    display: none;
}

.avatar-checkbox-label {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.avatar-checkbox-label:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.avatar-checkbox:checked + .avatar-checkbox-label {
    background: #3b82f6;
    border-color: #3b82f6;
}

.avatar-checkbox:checked + .avatar-checkbox-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.badge-mini {
    display: inline-block;
    background-color: #A5FDFE;
    color: #000000;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Specialized Analysis Section */
.specialized-analysis-section {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e5e0;
    padding: 24px;
    margin-bottom: 32px;
}

.specialized-analysis-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827;
}

.analysis-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.analysis-btn {
    background: #111827;
    color: white;
    padding: 16px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
}

.analysis-btn:hover {
    background: #000000;
    transform: translateY(-2px);
}

.analysis-btn-icon {
    width: 24px;
    height: 24px;
    stroke: white;
    flex-shrink: 0;
}

.analysis-btn-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.analysis-btn-desc {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

/* Filters */
.filters {
    background: #f9fafb;
    border: 1px solid #e5e5e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    max-width: 300px;
}

.filters h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: #374151;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}

.filters-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 0;
}

.page-header .title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.page-header .subtitle {
    color: #6b7280;
    font-size: 14px;
}

/* Search Form Styles */
.search-form {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e5e5e0;
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 32px;
}

.form-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.search-form textarea,
.search-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.search-form textarea:focus,
.search-form input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.platforms label {
    padding: 10px 16px;
    background: #f9f9f8;
    border: 1px solid #e5e5e0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.platforms label:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.loading-container {
    background: #fff;
    border: 1px solid #e5e5e0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    max-width: 600px;
    margin: 24px auto;
}

.search-form-box {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 720px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-form-box fieldset {
    border: none;
    margin-bottom: 0px;
    padding: 0;
}

.search-form-box legend {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.search-form-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

.search-form-box input[type="text"],
.search-form-box input[type="number"],
.search-form-box select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    margin-bottom: 16px;
}

.search-form-box input::placeholder {
    color: #9ca3af;
}

.search-form-box details {
    border: 1px solid #e5e5e0;
    border-radius: 10px;
    padding: 12px 16px;
    background: #fafafa;
    margin-top: 16px;
}

.search-form-box summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.search-form-box .btn-primary {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
    margin-top: 24px;
}

#search-form .form-section:last-of-type {
    margin-bottom: 24px;
}

#search-form button[type="submit"] {
    margin-top: 24px;
}

details {
    background: #fafafa;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

details summary {
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 12px;
    color: #111827;
}

/* ===== EMPTY STATE STYLES (FOR ALL MODULES) ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    grid-column: 1 / -1;
}

.empty-icon {
    margin-bottom: 20px;
    color: #ccc;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
