/* ============================================
   ESTATEHELPERS - MASTER STYLESHEET
   ============================================ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- LOADING SPINNER ---------- */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    opacity: 1;
    visibility: visible;
}

#loadingOverlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner-simple {
    width: 60px;
    height: 60px;
    border: 6px solid #e2e8f0;
    border-top: 6px solid #0f3b5e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #64748b;
    font-size: 18px;
    font-weight: 500;
}

.loading-dots {
    display: inline-block;
    min-width: 24px;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* ---------- HEADER / NAV ---------- */
header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #0f3b5e;
}

.logo span {
    color: #2d9cdb;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0f3b5e;
}

/* ---------- DROPDOWN STYLES ---------- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: #0f3b5e;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.dropdown-toggle:hover {
    background: #1a4f76;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 59, 94, 0.3);
}

.dropdown-toggle .arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.dropdown-toggle .arrow.open {
    transform: rotate(180deg);
}

.dropdown-toggle-login {
    background: transparent;
    color: #0f3b5e;
    border: 2px solid #0f3b5e;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.dropdown-toggle-login:hover {
    background: #0f3b5e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 59, 94, 0.3);
}

.dropdown-toggle-login .arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.dropdown-toggle-login .arrow.open {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 200;
    border: 1px solid #e2e8f0;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    border-left-color: #2d9cdb;
    color: #0f3b5e;
}

.dropdown-menu a .icon {
    font-size: 20px;
}

.dropdown-menu a .desc {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    display: block;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 12px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #0f3b5e;
    color: white;
}

.btn-primary:hover {
    background: #1a4f76;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 59, 94, 0.3);
}

.btn-outline {
    background: transparent;
    color: #0f3b5e;
    border: 2px solid #0f3b5e;
}

.btn-outline:hover {
    background: #0f3b5e;
    color: white;
}

.btn-success {
    background: #2d9cdb;
    color: white;
}

.btn-success:hover {
    background: #2383bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 156, 219, 0.3);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-view {
    background: #0f3b5e;
    color: white;
}

.btn-view:hover {
    background: #1a4f76;
}

.btn-book {
    background: #2d9cdb;
    color: white;
}

.btn-book:hover {
    background: #2383bb;
}

.btn-search {
    padding: 10px 28px;
    background: #0f3b5e;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    height: 44px;
}

.btn-search:hover {
    background: #1a4f76;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 59, 94, 0.3);
}

.btn-clear {
    padding: 10px 20px;
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    height: 44px;
}

.btn-clear:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-add-area {
    padding: 8px 16px;
    background: #e2e8f0;
    color: #475569;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    align-self: flex-start;
}

.btn-add-area:hover {
    background: #cbd5e1;
}

.btn-remove-area {
    padding: 8px 12px;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-remove-area:hover {
    background: #fecaca;
}

.btn-logout {
    background: #ef4444;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    background: #0f3b5e;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-sm:hover {
    background: #1a4f76;
}

/* ---------- AUTH PAGES ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

.auth-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
}

.auth-container-wide {
    max-width: 560px;
}

.auth-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-align: center;
    width: 100%;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    margin-bottom: 28px;
}

/* ---------- FORMS ---------- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 5px;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fafbfc;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d9cdb;
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- PASSWORD ---------- */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #94a3b8;
    padding: 4px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #0f3b5e;
}

/* Password Strength */
.strength-meter {
    margin-top: 8px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s ease, background 0.4s ease;
    background: #ef4444;
}

.strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.strength-status.weak { color: #ef4444; }
.strength-status.fair { color: #f59e0b; }
.strength-status.good { color: #3b82f6; }
.strength-status.strong { color: #22c55e; }

/* Password Requirements */
.requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.requirement {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    transition: color 0.3s;
}

.requirement.met {
    color: #22c55e;
}

.requirement .icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* ---------- SERVICE AREAS ---------- */
.service-areas-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-area-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.service-area-input input {
    flex: 1;
}

.popular-locations {
    display: flex;
    gap: 8px;
    align-items: center;
}

.popular-locations select {
    flex: 1;
}

/* ---------- ROLE SELECTOR ---------- */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
}

.role-btn {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
    text-align: center;
    font-family: inherit;
}

.role-btn:hover {
    border-color: #94a3b8;
}

.role-btn.active {
    border-color: #0f3b5e;
    background: #f0f7ff;
    color: #0f3b5e;
}

.role-btn .icon {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
}

/* ---------- ALERTS ---------- */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* ---------- FORM OPTIONS ---------- */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    cursor: pointer;
}

.form-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0f3b5e;
}

.form-options a {
    color: #2d9cdb;
    font-weight: 500;
}

.form-options a:hover {
    text-decoration: underline;
}

/* ---------- AUTH BUTTONS ---------- */
.btn-register,
.btn-login {
    width: 100%;
    padding: 14px;
    background: #0f3b5e;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-register:hover,
.btn-login:hover {
    background: #1a4f76;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 59, 94, 0.25);
}

.btn-register:disabled,
.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- AUTH LINKS ---------- */
.auth-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;
}

.auth-link a {
    color: #0f3b5e;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
}

.back-link a {
    color: #64748b;
}

.back-link a:hover {
    color: #0f3b5e;
    text-decoration: underline;
}

.terms {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 16px;
}

.terms a {
    color: #2d9cdb;
}

/* ---------- HERO ---------- */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #0f3b5e;
}

.hero h1 span {
    color: #2d9cdb;
}

.hero p {
    font-size: 20px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 14px 36px;
    font-size: 16px;
}

/* ---------- STATS ---------- */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 30px 0 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #0f3b5e;
}

.stat-label {
    color: #64748b;
    font-size: 15px;
}

/* ---------- SECTION TITLES ---------- */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #0f3b5e;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 18px;
    margin-bottom: 40px;
}

/* ---------- STEPS ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 20px 0 40px;
}

.step-card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.step-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0f3b5e;
}

.step-card p {
    color: #64748b;
    font-size: 14px;
}

/* ---------- ROLE CARDS ---------- */
.roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0 50px;
}

.role-card {
    background: white;
    padding: 36px 28px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 5px solid #2d9cdb;
    text-align: center;
    transition: transform 0.2s;
}

.role-card:hover {
    transform: translateY(-4px);
}

.role-card.gardener {
    border-top-color: #27ae60;
}

.role-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #0f3b5e;
}

.role-card p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 20px;
}

.role-card .btn {
    width: 100%;
    text-align: center;
}

/* ---------- FILTERS ---------- */
.filters {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.search-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.filter-group input,
.filter-group select {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #fafbfc;
    transition: border-color 0.2s;
    font-family: inherit;
    width: 100%;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #2d9cdb;
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.1);
}

/* ---------- RESULTS ---------- */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-count {
    color: #64748b;
    font-size: 15px;
}

.results-count strong {
    color: #0f3b5e;
}

.sort-options {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sort-options select {
    padding: 8px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    font-family: inherit;
}

/* ---------- WORKER CARDS ---------- */
.worker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.worker-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.worker-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: #2d9cdb;
}

.worker-card-top {
    padding: 24px 20px 16px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.worker-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #0f3b5e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 12px;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.worker-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f3b5e;
}

.worker-job-type {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.worker-job-type.nanny { background: #dbeafe; color: #1e40af; }
.worker-job-type.gardener { background: #dcfce7; color: #166534; }
.worker-job-type.both { background: #fef3c7; color: #92400e; }
.worker-job-type.domestic { background: #fce7f3; color: #9d174d; }
.worker-job-type.other { background: #e2e8f0; color: #475569; }

.worker-card-body {
    padding: 16px 20px 20px;
}

.worker-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.worker-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
}

.worker-info-item .icon {
    font-size: 16px;
}

.worker-locations {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.worker-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.stars {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 13px;
    color: #64748b;
}

.worker-card-actions {
    display: flex;
    gap: 8px;
}

.worker-card-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
}

/* ---------- NO RESULTS ---------- */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
}

.no-results .icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 24px;
    color: #0f3b5e;
    margin-bottom: 8px;
}

.no-results p {
    color: #64748b;
    margin-bottom: 16px;
}

/* ---------- PAGINATION ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
}

.pagination a:hover {
    border-color: #0f3b5e;
    color: #0f3b5e;
    transform: translateY(-2px);
}

.pagination .active {
    background: #0f3b5e;
    color: white;
    border-color: #0f3b5e;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- DASHBOARD ---------- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #0f3b5e;
}

.stat-card .stat-label {
    color: #64748b;
    font-size: 14px;
}

.stat-card.border-warning { border-left: 4px solid #f59e0b; }
.stat-card.border-success { border-left: 4px solid #22c55e; }
.stat-card.border-danger { border-left: 4px solid #ef4444; }
.stat-card.border-info { border-left: 4px solid #3b82f6; }

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.action-card:hover {
    transform: translateY(-4px);
}

.action-card .icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.action-card h3 {
    font-size: 18px;
    color: #0f3b5e;
    margin-bottom: 4px;
}

.action-card a {
    display: block;
    margin-top: 10px;
    color: #0f3b5e;
    font-weight: 600;
}

/* ---------- LOGOUT PAGE ---------- */
.logout-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 480px;
    padding: 48px 40px;
    text-align: center;
    margin: 40px auto;
}

.logout-icon {
    font-size: 64px;
    margin: 16px 0 8px;
}

.logout-message {
    font-size: 18px;
    color: #1e293b;
    margin: 16px 0 8px;
    font-weight: 500;
}

.logout-sub-message {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.redirect-text {
    color: #94a3b8;
    font-size: 14px;
}

.redirect-text .countdown {
    font-weight: 700;
    color: #0f3b5e;
    font-size: 18px;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ---------- FOOTER ---------- */
footer {
    background: #0f3b5e;
    color: #cbd5e1;
    padding: 40px 0 24px;
    margin-top: 40px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

footer h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
}

footer a {
    color: #cbd5e1;
    font-size: 14px;
    display: block;
    margin: 4px 0;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e4a6b;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .search-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 17px; }
    .stats { gap: 30px; }
    .stat-number { font-size: 28px; }
    nav { flex-direction: column; gap: 12px; }
    .nav-links { justify-content: center; }
    footer .container { flex-direction: column; text-align: center; }
    .search-row { grid-template-columns: 1fr; }
    .worker-grid { grid-template-columns: 1fr 1fr; }
    .results-header { flex-direction: column; align-items: flex-start; }
    .dropdown-menu { left: 50%; transform: translateX(-50%) translateY(-10px); min-width: 260px; }
    .dropdown-menu.show { transform: translateX(-50%) translateY(0); }
    .role-selector { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
    .role-btn { font-size: 11px; padding: 8px 6px; }
    .role-btn .icon { font-size: 16px; }
    .form-options { flex-direction: column; gap: 8px; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .requirements { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .roles { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .worker-grid { grid-template-columns: 1fr; }
    .filters { padding: 16px; }
    .worker-info { grid-template-columns: 1fr; }
    .worker-card-actions { flex-direction: column; }
    .pagination a, .pagination span { padding: 6px 12px; font-size: 12px; }
    .auth-container { padding: 30px 20px; }
    .auth-container-wide { padding: 30px 20px; }
    .logo { font-size: 24px; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .button-group { flex-direction: column; }
    .button-group .btn { width: 100%; }
    .logout-container { padding: 30px 20px; }
    .logout-icon { font-size: 48px; }
    .logout-message { font-size: 16px; }
}