/**
 * WikiIAS Stylesheet
 * Inspired by TrustMRR minimalistic design
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    overflow-x: auto;
}

body {
    /* Color scheme inspired by TrustMRR */
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #666666;
    --color-border: #e5e5e5;
    --color-primary: #000000;
    --color-link: #000000;
    --color-link-hover: #333333;
    --color-search-bg: #f8f8f8;
    --color-search-border: #e5e5e5;
    --color-card-bg: #ffffff;
    --color-card-border: #e5e5e5;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-h1: 32px;
    --font-size-h2: 24px;
    --font-size-h3: 20px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 4px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Header */
.header {
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: var(--color-text);
}

.logo h1 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--color-link-hover);
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-xl) 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p {
    font-size: var(--font-size-large);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

/* Search Form */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
    border: 2px solid var(--color-search-border);
    border-radius: 12px;
    background: var(--color-search-bg);
    font-family: var(--font-family);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.search-results {
    margin-top: var(--spacing-md);
}

/* Browse Links */
.browse-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.browse-link {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--color-text);
    text-decoration: none;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    font-size: var(--font-size-base);
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--color-bg);
    min-width: 180px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.browse-link:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.browse-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* New Table-Based Profile Layout */
.profile-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

.profile-header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--color-border);
}

.profile-photo-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.profile-photo-large.placeholder {
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: var(--font-size-small);
    border-radius: 50%;
    border: 4px solid var(--color-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-header-info {
    width: 100%;
}

.profile-name-main {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    color: var(--color-text);
    text-align: center;
    letter-spacing: -0.5px;
}

    .profile-service {
        font-size: var(--font-size-base);
        color: var(--color-text-secondary);
        text-align: center;
    }
    
    .profile-footer-section {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
    }
    
    .profile-stats {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .stat-icon {
        font-size: 18px;
    }
    
    .stat-value {
        font-size: var(--font-size-base);
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .profile-actions {
        flex-direction: column;
        gap: var(--spacing-xs);
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-base);
    }
    
    .action-icon {
        font-size: 18px;
    }
    
    .stat-icon {
        font-size: 20px;
    }
    
    .stat-value {
        font-size: var(--font-size-h2);
    }
    
    .profile-actions {
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .action-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-small);
    }
    
    .action-icon {
        font-size: 18px;
    }

.profile-footer-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--color-border);
    text-align: center;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.stat-icon {
    font-size: 24px;
}

.stat-value {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: var(--font-size-small);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.like-btn:hover {
    border-color: #4CAF50;
    background: #f1f8f4;
    color: #4CAF50;
}

.dislike-btn:hover {
    border-color: #f44336;
    background: #fff5f5;
    color: #f44336;
}

.action-icon {
    font-size: 20px;
}

.action-text {
    font-weight: 500;
}

.action-count {
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-left: var(--spacing-xs);
}

.profile-section-box {
    margin-bottom: var(--spacing-xl);
    border: 1px solid #d0d0d0;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--color-card-bg);
}

.profile-section-box .data-table {
    min-width: 100%;
}

.profile-section-box .section-title {
    background: #4a90e2;
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    margin: 0;
    font-size: var(--font-size-h3);
    font-weight: 600;
    border-bottom: 2px solid #357abd;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-base);
    table-layout: auto;
}

.data-table th,
.data-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.data-table th {
    white-space: nowrap;
    min-width: fit-content;
}

.data-table.striped th {
    white-space: normal;
}

.data-table thead {
    background: #f0f0f0;
}

.data-table th {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    font-weight: 600;
    border: 1px solid #d0d0d0;
    background: #f0f0f0;
    color: var(--color-text);
}

.data-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid #d0d0d0;
    color: var(--color-text);
}

.data-table.striped tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.data-table.striped tbody tr:nth-child(odd) {
    background: #ffffff;
}

.data-table tbody tr:hover {
    background: #f5f5f5;
}

.field-label {
    font-weight: 500;
    color: var(--color-text);
    width: 40%;
    vertical-align: top;
}

.field-value {
    color: var(--color-text);
    vertical-align: top;
}

/* Responsive adjustments for tables */
@media (max-width: 768px) {
    .profile-photo-large {
        width: 160px;
        height: 160px;
    }
    
    .profile-section-box {
        overflow: visible;
    }
    
    /* Convert striped tables to card layout */
    .data-table.striped {
        display: block;
        width: 100%;
    }
    
    .data-table.striped thead {
        display: none;
    }
    
    .data-table.striped tbody {
        display: block;
    }
    
    .data-table.striped tr {
        display: block;
        margin-bottom: var(--spacing-md);
        border: 1px solid #d0d0d0;
        border-radius: 8px;
        background: var(--color-bg);
        padding: var(--spacing-md);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .data-table.striped tr:nth-child(even) {
        background: #f9f9f9;
    }
    
    .data-table.striped tr:nth-child(odd) {
        background: #ffffff;
    }
    
    .data-table.striped td {
        display: block;
        padding: var(--spacing-xs) 0;
        border: none;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .data-table.striped td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--color-text-secondary);
        display: inline-block;
        margin-right: 8px;
        font-size: var(--font-size-small);
        min-width: 140px;
    }
    
    .data-table.striped td:first-child {
        font-weight: 600;
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
        padding-bottom: var(--spacing-xs);
        border-bottom: 2px solid #d0d0d0;
        color: var(--color-primary);
    }
    
    .data-table.striped td:first-child:before {
        content: "Entry #";
        display: inline;
        margin-right: 4px;
        min-width: auto;
    }
    
    .data-table.striped td:empty:before {
        display: none;
    }
    
    .data-table.striped td:empty {
        display: none;
    }
    
    /* Keep regular two-column tables as table */
    .data-table:not(.striped) {
        font-size: var(--font-size-small);
        display: table;
        width: 100%;
    }
    
    .data-table:not(.striped) th,
    .data-table:not(.striped) td {
        padding: var(--spacing-sm) var(--spacing-md);
        display: table-cell;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .field-label {
        width: 35%;
        max-width: none;
    }
    
    .field-value {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .profile-section-box {
        margin-bottom: var(--spacing-lg);
        overflow: visible;
    }
    
    .section-title {
        font-size: var(--font-size-base);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .profile-photo-large {
        width: 140px;
        height: 140px;
    }
    
    /* Enhanced card layout for mobile */
    .data-table.striped tr {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .data-table.striped td {
        font-size: var(--font-size-small);
        padding: var(--spacing-xs) 0;
    }
    
    .data-table.striped td:first-child {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
        padding-bottom: var(--spacing-xs);
    }
    
    .data-table.striped td:before {
        font-size: var(--font-size-small);
        margin-bottom: 2px;
    }
    
    /* Keep regular two-column tables as table */
    .data-table:not(.striped) {
        font-size: var(--font-size-small);
        display: table;
        width: 100%;
    }
    
    .data-table:not(.striped) th,
    .data-table:not(.striped) td {
        padding: var(--spacing-sm) var(--spacing-xs);
        display: table-cell;
        border: 1px solid #d0d0d0;
        vertical-align: top;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .field-label {
        width: 40%;
        font-weight: 600;
        padding-right: var(--spacing-sm);
        max-width: none;
    }
    
    .field-value {
        width: 60%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: none;
    }
}

.search-results-list {
    list-style: none;
}

.search-result-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: var(--spacing-xs);
}

.search-result-item:hover {
    background: var(--color-search-bg);
    transform: translateX(4px);
}

.search-result-item a {
    text-decoration: none;
    color: var(--color-text);
    display: block;
}

.search-result-item h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.search-result-item p {
    font-size: var(--font-size-small);
    color: var(--color-text-secondary);
    line-height: 1.5;
}



/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-xl);
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-small);
}

/* Responsive Design */

/* Tablet Styles (481px - 768px) */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 28px;
        --font-size-h2: 22px;
        --font-size-h3: 18px;
        --font-size-base: 15px;
        --spacing-xl: 32px;
        --spacing-lg: 24px;
        --spacing-md: 20px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .header {
        padding: 1rem !important;
    }
    
    .header .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .header-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .logo {
        font-size: 1.5rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .logo h1 {
        font-size: 1.5rem !important;
        margin: 0 !important;
    }
    
    .nav {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .nav a {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.75rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    .main {
        padding: var(--spacing-lg) 0;
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero h1 {
        font-size: var(--font-size-h1);
        margin-bottom: var(--spacing-xs);
    }
    
    .hero p {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
    }
    
    .browse-links {
        gap: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }
    
    .browse-link {
        min-width: 160px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .browse-items {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .browse-item a {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-base);
        border-radius: 10px;
    }
    
}

/* Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --font-size-h1: 24px;
        --font-size-h2: 20px;
        --font-size-h3: 17px;
        --font-size-base: 14px;
        --font-size-small: 13px;
        --spacing-xl: 24px;
        --spacing-lg: 20px;
        --spacing-md: 16px;
        --spacing-sm: 12px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .header {
        padding: 0.75rem !important;
        position: sticky;
        top: 0;
        background: var(--color-bg);
        z-index: 100;
    }
    
    .header .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .header-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .logo {
        text-align: center !important;
        font-size: 1.25rem !important;
        width: 100% !important;
    }
    
    .logo h1 {
        font-size: 1.25rem !important;
        margin: 0 !important;
    }
    
    .nav {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.4rem !important;
        max-width: 100% !important;
    }
    
    .nav a {
        font-size: 0.8125rem !important;
        padding: 0.4rem 0.6rem !important;
        white-space: nowrap !important;
        border-radius: 6px;
        transition: all 0.2s;
        flex-shrink: 0 !important;
    }
    
    .nav a:hover {
        background: var(--color-search-bg);
    }
    
    .main {
        padding: var(--spacing-md) 0;
        min-height: calc(100vh - 150px);
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
        text-align: center;
    }
    
    .hero h1 {
        font-size: var(--font-size-h1);
        margin-bottom: var(--spacing-sm);
        line-height: 1.2;
    }
    
    .hero p {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
        line-height: 1.6;
        padding: 0 var(--spacing-xs);
    }
    
    .browse-links {
        gap: var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
    
    .browse-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-small);
    }
    
    .browse-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-xs);
    }
    
    .browse-item a {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-small);
    }
    
    .search-results-list {
        padding: 0;
        margin-top: var(--spacing-md);
    }
    
    .search-result-item {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
        border-radius: 8px;
    }
    
    .search-result-item:hover {
        transform: none;
    }
    
    .search-result-item h3 {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
        font-weight: 600;
    }
    
    .search-result-item p {
        font-size: var(--font-size-small);
        line-height: 1.5;
    }
    
    .empty-state {
        padding: var(--spacing-lg) var(--spacing-sm);
        font-size: var(--font-size-base);
    }
    
    
    .footer {
        padding: var(--spacing-md) var(--spacing-sm);
        font-size: var(--font-size-small);
        margin-top: var(--spacing-lg);
    }
    
    .browse-links {
        flex-direction: column;
        gap: var(--spacing-md);
        margin-top: var(--spacing-lg);
        padding: 0;
    }
    
    .browse-link {
        width: 100%;
        text-align: center;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
        min-width: auto;
        display: block;
        touch-action: manipulation;
    }
    
    .browse-items {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .browse-item a {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
        border-radius: 12px;
        width: 100%;
        display: block;
        touch-action: manipulation;
    }
}

/* Small Mobile Devices (max-width: 360px) */
@media (max-width: 360px) {
    :root {
        --font-size-h1: 22px;
        --font-size-h2: 18px;
        --spacing-sm: 10px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .hero h1 {
        font-size: var(--font-size-h1);
    }
    
    .profile-photo-large {
        width: 120px;
        height: 120px;
    }
    
    .profile-photo {
        width: 80px;
        height: 80px;
    }
    
    .profile-name {
        font-size: var(--font-size-h1);
    }
    
    .profile-section-box {
        overflow: visible;
    }
    
    .data-table.striped tr {
        padding: var(--spacing-xs);
        margin-bottom: var(--spacing-xs);
    }
    
    .data-table.striped td {
        font-size: 11px;
        padding: 4px 0;
    }
    
    .data-table.striped td:first-child {
        font-size: 12px;
    }
    
    .data-table.striped td:before {
        font-size: 10px;
    }
    
    .data-table:not(.striped) {
        font-size: 11px;
    }
    
    .data-table:not(.striped) th,
    .data-table:not(.striped) td {
        padding: var(--spacing-xs) 6px;
        font-size: 11px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-secondary);
    background: var(--color-search-bg);
    border-radius: 12px;
    margin-top: var(--spacing-lg);
}

.empty-state p {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Browse Pages (Cadre/Batch) Styles */
/* Note: These styles apply to pages/browse_cadre.php and pages/browse_batch.php */

.breadcrumb {
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}


.page-header {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #666;
    font-size: 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: gap 0.3s;
}

.back-link:hover {
    gap: 0.75rem;
}

.filters-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.95rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s;
    outline: none;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.filter-select:focus {
    border-color: #667eea;
}

.results-info {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    color: #666;
    font-size: 0.95rem;
}

.results-count strong {
    color: #667eea;
    font-weight: 600;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.officers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.officer-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.officer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.officer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.officer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.officer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.officer-title {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
}

.officer-details {
    display: grid;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.detail-icon {
    color: #999;
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e8f0fe;
    color: #667eea;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.officers-list {
    display: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.officers-list.active {
    display: block;
}

.list-item {
    display: grid;
    grid-template-columns: auto 2fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.list-item:hover {
    background: #fafafa;
}

.list-item:last-child {
    border-bottom: none;
}

.list-avatar {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.list-name {
    font-weight: 600;
    color: #333;
}

.list-detail {
    color: #666;
    font-size: 0.95rem;
}

.chevron {
    color: #ccc;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-results-text {
    color: #666;
    font-size: 1.1rem;
}

.browse-list {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.browse-items {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 0;
}

.browse-item {
    padding: 0;
}

.browse-item a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.browse-item a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Browse Pages Mobile Styles */
@media (max-width: 768px) {

    .page-header {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .filters-section {
        padding: 1rem;
    }

    .filters-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
        min-width: 0;
    }

    .search-input {
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }

    .filter-group {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .filter-select {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .officers-grid {
        grid-template-columns: 1fr;
    }

    .list-item {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }

    .list-detail:not(:first-of-type),
    .chevron {
        display: none;
    }

    .results-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .browse-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .page-header {
        padding: 1rem;
    }

    .filters-section {
        padding: 0.75rem;
    }

    .filter-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-select {
        width: 100%;
    }
}

