@font-face {
    font-family: 'SunTommy';
    src: url('../fonts/SunTommy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #d1d5db;
    --error: #dc2626;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
}

.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.error-message {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: var(--error);
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background-color: var(--primary-hover);
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.login-footer a {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-layout {
    min-height: 100vh;
    background: var(--bg-body);
}

.navbar {
    background: var(--bg-card);
    padding: 0.75rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-brand h1 {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px 4px 4px;
    background: #f9fafb;
    border-radius: 9999px;
    border: 1px solid var(--border);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #e5e7eb;
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-logout-small {
    padding: 8px 16px;
    background: #fee2e2;
    color: var(--error);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-logout-small:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Table Design */
.table-container {
    background: var(--bg-card);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: #f9fafb;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 14px 16px;
    font-size: 0.875rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f9fafb;
}

.clickable-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.clickable-row:hover td {
    background: #f0f9ff !important;
}

.badge {
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-vip {
    background: #fef3c7;
    color: #92400e;
}

.badge-regular {
    background: #e1effe;
    color: #1e429f;
}

/* Search Bar Styles */
.search-container {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 400px;
    transition: border-color 0.2s;
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: var(--text-main);
    outline: none;
    background: transparent;
}

.btn-search {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-clear {
    padding: 8px 16px;
    background: #e5e7eb;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-clear:hover {
    background: #d1d5db;
}

/* Pagination Styles */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-link:hover {
    background: var(--bg-body);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.page-link:active {
    transform: translateY(0);
}

.current-page {
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
}

@media (max-width: 768px) {
    .pagination {
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 850px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Grid Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-danger {
    background: #fee2e2;
    color: var(--error);
}

.btn-danger:hover {
    background: var(--error);
    color: white;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: #f9fafb;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon.delete:hover {
    background: #fee2e2;
    border-color: var(--error);
    color: var(--error);
}

.select-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.full-width {
    grid-column: 1 / -1;
}


/* Enhanced Filter Design */
.filter-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.filter-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.filter-item {
    position: relative;
}

.filter-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 5;
}

.filter-input-wrapper input,
.filter-input-wrapper select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px 10px 38px !important;
    font-size: 0.9rem;
    background: #f9fafb;
    transition: all 0.2s ease;
    height: 42px !important;
    appearance: none;
}

.filter-input-wrapper input:focus,
.filter-input-wrapper select:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.filter-input-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.btn-clear-filters {
    font-size: 0.8rem;
    padding: 6px 14px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clear-filters:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.active-filter-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: 4px;
}

/* Header & Stats Enhancements */
.content-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}

.directory-title h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
    margin: 0;
}

.directory-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stats-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.stat-badge {
    background: white;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    color: var(--primary);
    font-weight: 700;
}

.btn-add-member {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    transition: all 0.2s;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-add-member:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.3);
}

.btn-add-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* Modern Search & Advanced Filters */
.search-header-container {
    background: white;
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.main-search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-fixed {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input-modern {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.search-input-modern:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.btn-toggle-filters {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-toggle-filters:hover {
    background: #f3f4f6;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-toggle-filters.active {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
}

.advanced-filters-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.advanced-filters-section.show {
    max-height: 1000px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    opacity: 1;
    overflow: visible;
}

.filters-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.filter-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-control-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.modern-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.search-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 1.5rem;
}

/* Animations */
@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.stat-badge-new {
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat-badge-new strong {
    color: var(--primary);
    font-weight: 700;
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-brand h1 {
        font-size: 1.1rem;
    }

    .user-nav {
        gap: 0.75rem;
    }

    .user-badge {
        padding: 3px;
    }

    .user-details {
        display: none;
    }

    .main-content {
        padding: 1rem;
    }

    .content-header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .stats-container {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .stat-badge {
        justify-content: space-between;
    }

    .btn-add-member {
        width: 100%;
        justify-content: center;
    }

    .search-header-container {
        padding: 1rem;
    }

    .main-search-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-input-group {
        width: 100%;
    }

    .btn-toggle-filters {
        width: 100%;
        justify-content: center;
    }

    .btn-clear-filters {
        width: 100%;
        justify-content: center;
    }

    .filters-grid-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .advanced-filters-section.show {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .table-container {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .pagination-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Modal Mobile Adjustments */
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .directory-title h3 {
        font-size: 1.5rem;
    }

    .stat-badge {
        padding: 8px 12px;
    }
}
/* Language Toggle Utility */
.sun-tommy-active .sun-tommy-data,
.sun-tommy-active .dynamic-font-select,
.sun-tommy-active .dynamic-font-select option {
    font-family: 'SunTommy', sans-serif !important;
}

/* Ensure other elements stay in standard font */
.sun-tommy-active *:not(.sun-tommy-data):not(.dynamic-font-select):not(.dynamic-font-select option) {
    /* Most elements will inherit Inter from * or body */
}

/* Hack to help some browsers render fonts in dropdown lists */
.sun-tommy-active .dynamic-font-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.25rem !important;
}

.lang-toggle-container {
    display: flex;
    background: #e5e7eb;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-muted);
}

.lang-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Searchable Dropdown Styles */
.searchable-select-wrapper {
    position: relative;
    width: 100%;
}

.search-dropdown-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.searchable-select-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #6b7280;
    pointer-events: none;
}

.search-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    max-height: 500px; 
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    display: none;
}

.search-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.search-dropdown-list::-webkit-scrollbar-track {
    background: transparent;
}

.search-dropdown-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.search-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.search-dropdown-list.show {
    display: block;
}

.search-dropdown-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f9fafb;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: #f3f4f6;
}

.search-dropdown-item.selected {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.search-dropdown-item.no-results {
    color: #6b7280;
    font-style: italic;
    pointer-events: none;
}

table td.sun-tommy-data,
input.sun-tommy-data,
.sun-tommy-data {
    font-family: 'SunTommy', sans-serif !important;
}

