/* Modern Electronics Theme CSS */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.provider-link { font-weight:600; color:var(--primary-color); text-decoration:none; position:relative; }
.provider-link:hover { text-decoration:underline; }
.provider-modal .modal-content { border-radius:18px; border:0; box-shadow:var(--shadow-xl); }
.provider-profile { display:flex; flex-direction:column; gap:1.25rem; }
.provider-profile-head { display:flex; gap:1rem; align-items:center; }
.provider-profile-head .pp-avatar { width:60px; height:60px; border-radius:16px; background:linear-gradient(135deg,var(--primary-color),var(--secondary-color)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.6rem; box-shadow:var(--shadow-md); }
.provider-profile-head .pp-name { margin:0; font-size:1.15rem; font-weight:600; }
.provider-profile-head .pp-role { font-size:.75rem; letter-spacing:.5px; text-transform:uppercase; background:var(--primary-color); color:#fff; padding:2px 6px; border-radius:6px; display:inline-block; margin-top:4px; }
.pp-section { background:#f8fafc; padding:.75rem 1rem; border-radius:12px; box-shadow:var(--shadow-sm); }
.pp-label { font-size:.7rem; font-weight:600; text-transform:uppercase; letter-spacing:.5px; color:var(--text-secondary); margin-bottom:2px; }
.pp-value { font-size:.9rem; font-weight:500; color:var(--text-primary); word-break:break-word; }
.pp-grid { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.pp-section-group { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.pp-sub { background:#ffffff; padding:.85rem 1rem; border:1px solid var(--border-color); border-radius:12px; position:relative; }
.pp-multivalue { font-size:.8rem; font-weight:500; color:var(--text-primary); max-height:70px; overflow:auto; scrollbar-width:thin; }
.pp-multivalue::-webkit-scrollbar { width:6px; }
.pp-multivalue::-webkit-scrollbar-track { background:transparent; }
.pp-multivalue::-webkit-scrollbar-thumb { background:var(--primary-color); border-radius:3px; }
.pp-notes { font-size:.75rem; color:var(--text-secondary); line-height:1.4; background:#f1f5f9; padding:.75rem 1rem; border-radius:10px; }
.provider-modal .modal-header { border-bottom:0; background:linear-gradient(135deg,#2563eb,#1e40af); color:#fff; }
.provider-modal .modal-title { font-size:1rem; font-weight:600; }
.provider-modal .btn-close { filter:invert(1); }
.provider-modal .modal-footer { border-top:0; background:#f8fafc; }
.provider-modal { z-index:1085; }
.modal-backdrop.show { opacity:.55; }
.mobile-drawer, .mobile-nav-toggle { display:none; }
.provider-overlay { position:fixed; inset:0; z-index:9999; display:none; }
.provider-overlay.active { display:block; }
.provider-overlay-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.72); backdrop-filter:blur(4px); }
.provider-sheet { position:relative; margin:60px auto; max-width:860px; background:#fff; border-radius:28px; box-shadow:0 30px 60px -10px rgba(0,0,0,.35); display:flex; flex-direction:column; overflow:hidden; animation:provIn .35s cubic-bezier(.4,.8,.2,1); }
@keyframes provIn { from { opacity:0; transform:translateY(30px) scale(.96);} to { opacity:1; transform:translateY(0) scale(1);} }
.provider-sheet-header { display:flex; align-items:center; gap:.75rem; padding:1rem 1.25rem; background:linear-gradient(135deg,#2563eb,#1e40af); color:#fff; }
.provider-sheet-header .ps-icon { width:42px; height:42px; border-radius:14px; background:rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; font-size:1.1rem; }
.provider-sheet-header .ps-title { font-weight:600; font-size:1rem; letter-spacing:.5px; }
.provider-sheet-header .ps-close { margin-left:auto; background:rgba(255,255,255,.15); border:0; width:38px; height:38px; border-radius:12px; font-size:1.3rem; line-height:1; color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.2s; }
.provider-sheet-header .ps-close:hover { background:rgba(255,255,255,.3); }
.provider-sheet-body { padding:1.25rem 1.5rem 1rem; max-height:60vh; overflow:auto; }
.provider-sheet-footer { padding:.75rem 1.25rem 1.25rem; display:flex; justify-content:flex-end; background:#f8fafc; }
@media (max-width:900px){ .provider-sheet { margin:30px auto; width:92%; border-radius:24px;} }

/* Mobile navigation */
@media (max-width: 992px) {
    header.header { position:fixed; width:100%; left:0; top:0; z-index:11000; }
    .header-content { position:relative; min-height:50px; padding:.25rem 0 .25rem; }
    .mobile-nav-toggle { display:flex; position:absolute; top:4px; right:8px; width:44px; height:40px; flex-direction:column; gap:5px; border:0; background:linear-gradient(135deg,var(--primary-color),var(--secondary-color)); border-radius:14px; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 8px 18px -6px rgba(0,0,0,.35); transition:.35s cubic-bezier(.4,.8,.2,1); }
    .mobile-nav-toggle .bar { width:22px; height:3px; background:#fff; border-radius:3px; transition:.35s cubic-bezier(.4,.8,.2,1); }
    body.mobile-drawer-open .mobile-nav-toggle .bar:nth-child(1){ transform:translateY(7px) rotate(45deg); }
    body.mobile-drawer-open .mobile-nav-toggle .bar:nth-child(2){ opacity:0; transform:scaleX(0); }
    body.mobile-drawer-open .mobile-nav-toggle .bar:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
    .logo { padding-right:60px; }
    main { padding-top:58px; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    overflow: visible;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    width: 100%;
    overflow: visible;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
    max-width: 300px;
    transition: all 0.2s ease;
}

.logo:hover {
    color: var(--secondary-color);
    text-decoration: none;
    transform: scale(1.02);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* Navigation */
.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100% - 320px);
    overflow: visible;
    position: relative;
}

/* GhostMenu specific styles */
.ghost-menu-nav {
    position: relative;
    overflow: visible;
}

.ghost-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    overflow: visible;
}

.ghost-menu-item {
    position: relative;
    list-style: none;
    margin: 0.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    overflow: visible;
}

/* Style for regular nav links (items with URLs) */
.ghost-menu-item > .nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    background: transparent;
    cursor: pointer;
    margin: 0;
}

/* Style for dropdown parent items (no URL, text only) */
.ghost-menu-item:not(:has(.nav-link)) {
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    background: transparent;
    margin: 0;
}

/* Hover styles for nav links */
.ghost-menu-item > .nav-link:hover,
.ghost-menu-item.active > .nav-link {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Hover styles for dropdown parents */
.ghost-menu-item:not(:has(.nav-link)):hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Active state styles for dropdown parents when child is active */
.ghost-menu-item:not(:has(.nav-link)):has(.ghost-submenu .ghost-menu-item.active) {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

/* Fallback for browsers that don't support :has() - mark parent as active when any child is active */
.ghost-menu-item.has-active-child {
    background: rgba(37, 99, 235, 0.15) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* Active state styles */
.ghost-menu-item.active > .nav-link,
.ghost-menu-item.active:not(:has(.nav-link)) {
    background: rgba(37, 99, 235, 0.15);
    font-weight: 600;
}

.nav-link i,
.ghost-menu-item i {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Dropdown/Submenu styles */
.ghost-menu-item:hover .ghost-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.ghost-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    max-width: 300px;
    padding: 0.5rem;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    pointer-events: none;
    overflow: hidden;
    contain: layout;
}

.ghost-submenu .ghost-menu-item {
    width: 100%;
    background: transparent;
    margin: 0.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    list-style: none;
    position: relative;
    overflow: hidden;
}

.ghost-submenu .nav-link {
    padding: 0.75rem 1rem;
    width: calc(100% - 0.5rem);
    border-radius: 8px;
    font-size: 0.9rem;
    justify-content: flex-start;
    border-bottom: none;
    white-space: nowrap;
    transform: none;
    background: transparent;
    margin: 0;
    transition: all 0.2s ease;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ghost-submenu .ghost-menu-item:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.ghost-submenu .nav-link:hover {
    background: transparent;
    color: var(--primary-color);
    transform: none;
}

.ghost-submenu .ghost-menu-item.active {
    background: rgba(37, 99, 235, 0.15) !important;
    font-weight: 600;
}

.ghost-submenu .ghost-menu-item.active .nav-link {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    background: transparent;
}

/* Main Content */
.main {
    padding: 2rem 0;
    width: 100%;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
    overflow: visible;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: visible;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
    overflow: visible;
}

/* Dashboard specific styles */
.dashboard-card {
    overflow: visible !important;
    margin-bottom: 2rem;
}

.dashboard-card .card-body {
    overflow: visible !important;
    padding-bottom: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    align-items: center;
    gap: 0.5rem;
}

.required {
    color: #dc2626 !important;
    font-weight: bold !important;
}

/* Remove red color from form labels - only asterisk should be red */
.form-label,
label,
.control-label {
    color: var(--text-primary) !important;
}

ul.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
ul.pagination li.page-item > a.page-link,
ul.pagination li.page-item > span.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 0.45rem 0.75rem;
    min-width: 2.25rem; /* az egységes kerek gombérzethez */
    height: 2.25rem;
    font-weight: 500;
}
ul.pagination li.page-item:first-child .page-link {
    font-size: 0.95rem;
}
/* Kis optimalizáció a hover állapotra, egységes megjelenés */
ul.pagination .page-link:hover {
    transform: translateY(-1px);
    transition: all .15s ease;
}
ul.pagination .active .page-link {
    font-weight: 600;
}
/* homepage basic structural styles (no functionality change) */
.home-hero-wrapper {max-width:1200px;margin:2rem auto 1.5rem;padding:0 1rem;}
.home-hero .hero-body {text-align:center;}
.hero-title {font-size:2rem;font-weight:700;display:flex;align-items:center;gap:.6rem;margin:0;}
.hero-subtitle-main {font-size:1.25rem;margin:1rem 0 .25rem;font-weight:600;color:var(--primary-color);}
.hero-tagline {margin:0 0 1.25rem;color:var(--text-secondary);font-size:.95rem;}
.hero-actions {display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;}
.hero-btn {min-width:180px;font-weight:600;}
.home-sections {max-width:1200px;margin:0 auto 3rem;padding:0 1rem;display:flex;flex-direction:column;gap:2rem;}
.features-row {display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem;}
.feature-card .feature-body {text-align:center;}
.feature-icon {font-size:2.2rem;color:var(--primary-color);margin:0 auto .75rem;}
.feature-title {font-size:1.15rem;font-weight:600;margin-bottom:.5rem;}
.feature-text {font-size:.875rem;color:var(--text-secondary);line-height:1.4;margin:0 0 1rem;}
.feature-list {list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.4rem;font-size:.8rem;text-align:left;max-width:230px;margin-left:auto;margin-right:auto;}
.feature-list li {position:relative;padding-left:1.1rem;}
.feature-list li:before {content:'\2713';position:absolute;left:0;color:var(--success-color);font-size:.75rem;top:.15rem;}
.services-body {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1.5rem;text-align:center;}
.service-item h4 {margin:.75rem 0 .4rem;font-size:1rem;font-weight:600;}
.service-item p {font-size:.75rem;color:var(--text-secondary);margin:0;}
.service-icon {font-size:1.9rem;color:var(--primary-color);}
.stats-body {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1.25rem;text-align:center;}
.stat-item {background:rgba(255,255,255,.4);border:1px solid var(--border-color);padding:1rem;border-radius:12px;display:flex;flex-direction:column;gap:.3rem;}
.stat-icon {font-size:1.4rem;color:var(--primary-color);}
.stat-value {font-size:1.4rem;font-weight:700;}
.stat-label {font-size:.7rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;}
.recent-jobs-body {text-align:center;}
.jobs-actions {margin-top:1rem;}
.cta-body {text-align:center;}
.cta-btn {margin:1rem 0;}
.cta-login {margin-bottom:.5rem;}
.login-link {color:var(--text-primary);text-decoration:none;font-weight:600;}
.login-link:hover {color:var(--primary-color);}
.cta-note {font-size:.7rem;color:var(--text-secondary);}
@media (max-width:600px){.hero-title{font-size:1.5rem}.hero-subtitle-main{font-size:1.05rem}.hero-actions{flex-direction:column}.hero-btn{width:100%;}}
body.fixed-header-enabled {padding-top:90px;}
header.header {position:fixed;top:0;left:0;right:0;z-index:1100;}
.client-dashboard-wrapper{max-width:1200px;margin:0 auto 2rem;padding:0 1rem;}
.client-dashboard .card-header{background:linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff;}
.kpi-box{background:rgba(255,255,255,0.9);border:1px solid var(--border-color);border-radius:12px;padding:1.25rem;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;position:relative;min-height:130px;box-shadow:var(--shadow-sm);}
.kpi-box .kpi-icon{font-size:1.6rem;margin-bottom:.5rem;opacity:.85;}
.kpi-box .kpi-value{font-size:1.9rem;font-weight:700;line-height:1;}
.kpi-box .kpi-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.5px;color:var(--text-secondary);margin-top:.35rem;font-weight:600;}
.kpi-total{background:#eef4ff;border-color:#d2e3ff;}
.kpi-active{background:#ecfdf5;border-color:#bbf7d0;}
.kpi-pending{background:#fffbeb;border-color:#fde68a;}
.section-title{font-size:1.15rem;font-weight:600;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem;}
.empty-jobs-box{background:#fff;border:1px solid var(--border-color);border-radius:8px;padding:3rem 1rem;text-align:center;box-shadow:var(--shadow-sm);}
.empty-icon{font-size:2.2rem;color:#94a3b8;margin-bottom:.75rem;}
.empty-title{font-size:1.05rem;font-weight:600;margin-bottom:.35rem;color:var(--text-primary);}
.empty-text{font-size:.85rem;color:var(--text-secondary);margin-bottom:1.25rem;}
.empty-action{min-width:240px;font-weight:600;}
.empty-action{display:inline-flex;align-items:center;justify-content:center;}
@media (max-width:768px){.kpi-box{min-height:auto;padding:1rem}.kpi-box .kpi-value{font-size:1.5rem}.client-dashboard-wrapper{margin-top:1rem}}

/* Handle Yii2's native required field asterisk */
label .required,
.form-label .required,
.control-label .required,
.form-group label .required,
.form-group .form-label .required,
.form-group .control-label .required {
    color: #dc2626 !important;
    font-weight: bold !important;
    margin-left: 0.25rem !important;
}

/* Ensure labels themselves stay normal color */
.form-group label,
.form-group .form-label,
.form-group .control-label {
    color: var(--text-primary) !important;
}

/* Handle manually added asterisks */
span.required {
    color: #dc2626 !important;
    font-weight: bold !important;
    margin-left: 0.25rem !important;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
    border-color: var(--danger-color);
}

/* Form group error states */
.form-group.has-error .form-control {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1) !important;
}

.form-group.has-error label {
    color: var(--text-primary) !important;
}

.form-group.has-error label .required {
    color: var(--danger-color) !important;
}

/* Error message styling */
.help-block {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    line-height: 1.4;
}

.form-group .help-block {
    margin-top: 0.5rem;
}

.form-group.has-error .help-block {
    display: block !important;
    color: var(--danger-color) !important;
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success state for forms */
.form-group.has-success .form-control {
    border-color: var(--success-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

/* Focus states with validation */
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group.has-error .form-control:focus {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-group.has-success .form-control:focus {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--primary-color);
    color: white;
    white-space: nowrap;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-secondary {
    background: var(--text-secondary);
}

.btn-success {
    background: var(--success-color);
}

.btn-warning {
    background: var(--warning-color);
}

.btn-danger {
    background: var(--danger-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.25rem 0;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none;
    backdrop-filter: blur(2px);
}

.table th,
.table td {
    padding: 0.85rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    vertical-align: middle;
    line-height: 1.4;
    background: transparent;
}

.table th {
    background: #f1f5f9;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: .5px;
    text-transform: none;
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--border-color);
}

.table th:first-child { border-top-left-radius: 14px; }
.table th:last-child { border-top-right-radius: 14px; }

.table thead tr + tr th { border-top-left-radius: 0; border-top-right-radius: 0; }

.table th a {
    color: inherit !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: inherit;
}

.table th a:hover { color: var(--primary-color) !important; }

.table tbody tr {
    transition: background-color .18s ease; 
}

.table tbody tr:nth-child(even) { background: #fafafa; }
.table tbody tr:nth-child(odd) { background: #ffffff; }

.table tbody tr:hover { background: #eef2f7; }

.table tbody tr:last-child td { border-bottom: none; }

.table td strong { color: var(--text-primary); font-weight: 600; }
.table td small { color: var(--text-secondary); font-size: 0.7rem; }

.table td .btn-group { display: inline-flex; gap: .35rem; align-items: center; }
.table td .badge { margin: 0; }

.table-compact th,
.table-compact td { padding: 0.55rem 0.6rem; font-size: 0.7rem; }

.table-tight th,
.table-tight td { padding: 0.4rem 0.5rem; font-size: 0.65rem; }

.table-clean { border: none; border-radius: 0; }
.table-clean th { background: transparent; border-bottom: 1px solid var(--border-color); }
.table-clean tbody tr:nth-child(even) { background: transparent; }

.table-flat { box-shadow: none; border: 1px solid var(--border-color); }

.table-hover tbody tr:hover { background: #e8eef5 !important; }

.table-striped tbody tr:nth-child(even) { background: #f6f8fa; }
.table-striped tbody tr:nth-child(odd) { background: #ffffff; }

.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--border-color); }

.table thead.table-dark th { background: #1e293b !important; color: #f1f5f9; border-color: #334155; }

@media (max-width: 760px) {
    .table,
    .table-responsive { border-radius: 10px; }
    .table th,
    .table td { padding: 0.6rem 0.6rem; font-size: 0.65rem; }
}

/* Wide table for better spacing */
.table-wide th,
.table-wide td {
    padding: 1.25rem 1rem;
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
    line-height: 1.6;
}

ul li, ol li {
    color: var(--text-primary);
}

/* Custom list styles */
.list-group {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: white;
}

.list-group-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(4px);
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-weight: 600;
}

.list-group-item.active:hover {
    transform: translateX(0);
    border-left: none;
    padding-left: 1.25rem;
}

/* List group flush (no borders) */
.list-group-flush .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.list-group-flush .list-group-item:first-child {
    border-top: none;
}

/* Horizontal list group */
.list-group-horizontal {
    flex-direction: row;
}

.list-group-horizontal .list-group-item {
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.list-group-horizontal .list-group-item:last-child {
    border-right: none;
}

/* Simple list styling */
.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.list-inline {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Clean bullet lists */
ul.clean-list {
    list-style: none;
    padding-left: 0;
}

ul.clean-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

ul.clean-list li:before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

/* Numbered lists with custom styling */
ol.custom-numbered {
    counter-reset: custom-counter;
    list-style: none;
    padding-left: 0;
}

ol.custom-numbered li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
}

ol.custom-numbered li:before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Card-based lists */
.card-list {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.card-list-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-list-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-list-item:hover:before {
    transform: scaleX(1);
}

.card-list-item h3, .card-list-item h4, .card-list-item h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-list-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Grid variants for card lists */
.card-list-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-list-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-list-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Compact card list */
.card-list-compact .card-list-item {
    padding: 1rem;
}

/* Data list styling */
.data-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin: 1rem 0;
}

.data-list-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.data-list-item:last-child {
    border-bottom: none;
}

.data-list-item:hover {
    background: var(--light-bg);
}

.data-list-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
    margin-right: 1rem;
}

.data-list-value {
    color: var(--text-secondary);
    flex: 1;
}

/* Action lists */
.action-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin: 1rem 0;
}

.action-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.action-list-item:last-child {
    border-bottom: none;
}

.action-list-item:hover {
    background: var(--light-bg);
    transform: translateX(4px);
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.action-list-content {
    flex: 1;
}

.action-list-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.action-list-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.action-list-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.badge-secondary {
    background: rgba(130, 130, 130, 0.8);;
    color: white;
    box-shadow: 0 2px 4px rgba(130, 130, 130, 0.8);
}

.badge-secondary:hover {
    background: rgba(100, 100, 100, 0.8);;
    box-shadow: 0 2px 4px rgba(130, 130, 130, 0.8);
}

.badge-success {
    background: var(--success-color);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.badge-success:hover {
    background: #059669;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.badge-warning {
    background: var(--warning-color);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.badge-warning:hover {
    background: #d97706;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
}

.badge-danger {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.badge-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}

.badge-info {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.badge-info:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.4);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

/* Responsive - Mobile First Approach */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .logo {
        font-size: 1.25rem !important;
    }

    .logo-icon {
        width: 28px !important;
        height: 28px !important;
    }

    .nav {
        gap: 0.5rem !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .nav-link {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .card {
        border-radius: 12px !important;
    }

    .card-body {
        padding: 0.75rem !important;
    }

    .card-header {
        padding: 0.75rem !important;
    }

    .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
        width: 100%;
        justify-content: center;
    }

    .form-control {
        padding: 0.5rem 0.75rem !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    .container {
        padding: 0 0.25rem !important;
    }

    /* Mobile table optimizations */
    .table-responsive {
        font-size: 0.75rem !important;
        border-radius: 8px !important;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.75rem !important;
    }

    .table th {
        font-size: 0.7rem !important;
        letter-spacing: 0.25px !important;
    }

    /* Mobile list optimizations */
    .list-group-item {
        padding: 0.75rem !important;
        flex-direction: column;
        align-items: flex-start;
    }

    .card-list-2,
    .card-list-3,
    .card-list-4 {
        grid-template-columns: 1fr !important;
    }

    .card-list-item {
        padding: 1rem !important;
    }

    .data-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem !important;
    }

    .data-list-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-light);
    }

    .data-list-value {
        font-size: 0.9rem;
    }

    .action-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.75rem !important;
    }

    .action-list-meta {
        margin-top: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6 {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .header-content {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem 0 !important;
    }

    .main {
        padding: 1rem 0 !important;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0;
    }

    .logo {
        margin-bottom: 0.5rem;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .ghost-menu-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
    }

    .ghost-menu-item > .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: flex-start;
    }

    .ghost-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(248, 250, 252, 0.8);
        margin-left: 1rem;
        border-left: 3px solid var(--primary-color);
    }
}

@media (max-width: 480px) {
    .ghost-menu-item > .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .ghost-submenu .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Electronics theme specific - Simplified */
.electronics-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Additional responsive utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

@media (max-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (max-width: 480px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}

/* Global Modal Styles */
/* Ensure modals are always above header */
.modal {
    display: none;
    position: fixed;
    z-index: 9999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10000 !important;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal-body {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 1;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.btn-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.card{overflow:hidden;position:relative}
.card-header{border-top-left-radius:inherit;border-top-right-radius:inherit;position:relative;z-index:1}

.flash-wrapper{position:relative;max-width:900px;margin:0 auto 1rem;display:flex;flex-direction:column;gap:.75rem}
.app-flash{display:flex;align-items:flex-start;gap:.75rem;background:#ffffff;border:1px solid var(--border-color);border-radius:18px;padding:1rem 1.25rem;box-shadow:0 6px 20px -5px rgba(0,0,0,.12),0 2px 6px rgba(0,0,0,.08);position:relative;overflow:hidden;animation:flashIn .45s cubic-bezier(.4,.8,.2,1)}
.app-flash:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,rgba(37,99,235,.08),rgba(255,255,255,0) 60%)}
.app-flash-success{border-color:rgba(16,185,129,.35)}
.app-flash-error{border-color:rgba(239,68,68,.4)}
.app-flash-success .flash-icon{color:var(--success-color)}
.app-flash-error .flash-icon{color:var(--danger-color)}
.flash-icon{font-size:1.25rem;line-height:1;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:.15rem}
.flash-message{flex:1;font-size:.9rem;font-weight:500;color:var(--text-primary);line-height:1.4}
.flash-close{background:rgba(0,0,0,.04);border:none;width:32px;height:32px;border-radius:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.1rem;line-height:1;color:#64748b;transition:all .2s ease;margin:-.25rem 0 0 .25rem;padding:0}
.flash-close:hover{background:rgba(0,0,0,.08);color:#1e293b}
.app-flash.closing{opacity:0;transform:translateY(-6px) scale(.98);transition:all .35s ease}
@keyframes flashIn{0%{opacity:0;transform:translateY(8px) scale(.96)}100%{opacity:1;transform:translateY(0) scale(1)}}

.cookie-consent-overlay {position:fixed;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(6px);display:flex;align-items:flex-end;justify-content:center;padding:1.25rem;z-index:20000;animation:cookieFade .35s ease;}
.cookie-consent-overlay.hidden{display:none!important}
.cookie-consent-modal {width:100%;max-width:480px;background:#fff;border:1px solid var(--border-color);border-radius:20px;padding:1.75rem 1.5rem;box-shadow:0 8px 40px -4px rgba(0,0,0,.25),0 2px 8px rgba(0,0,0,.08);display:flex;flex-direction:column;gap:1rem;animation:cookieSlide .5s cubic-bezier(.4,.8,.2,1);}
.cookie-consent-modal h3 {margin:0;font-size:1.05rem;font-weight:600;letter-spacing:.3px;color:var(--text-primary);}
.cookie-consent-modal p {margin:0;font-size:.8rem;line-height:1.5;color:var(--text-secondary);}
.cookie-actions {display:flex;gap:.65rem;margin-top:.25rem;}
.cookie-actions .btn {flex:1;justify-content:center;font-size:.75rem;padding:.65rem .75rem;border-radius:8px;}
.cookie-link {font-size:.7rem;text-decoration:none;color:var(--primary-color);opacity:.85;align-self:flex-start;margin-top:-.25rem;}
.cookie-link:hover {opacity:1;}
.no-scroll {overflow:hidden;}
@keyframes cookieFade {0%{opacity:0}100%{opacity:1}}
@keyframes cookieSlide {0%{transform:translateY(25px) scale(.98);opacity:0}100%{transform:translateY(0) scale(1);opacity:1}}
@media (max-width:600px){.cookie-consent-modal{padding:1.35rem 1.15rem;border-radius:18px}.cookie-consent-modal h3{font-size:.95rem}.cookie-consent-modal p{font-size:.7rem}.cookie-actions .btn{font-size:.7rem;padding:.55rem .6rem}}

.job-row-pending-flash{background:linear-gradient(90deg,rgba(245,158,11,.15),rgba(245,158,11,0) 70%) !important;animation:pendingPulseBg 2.4s ease-in-out infinite}
@keyframes pendingPulseBg{0%{background-position:0 0;filter:brightness(1)}50%{background-position:100% 0;filter:brightness(1.05)}100%{background-position:0 0;filter:brightness(1)}}

/* Dashboard buttons container */
.dashboard-buttons {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.dashboard-buttons .grid-3 {
    width: 100%;
    max-width: 100%;
}

/* Admin dashboard buttons responsive */
@media (max-width: 1400px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        justify-content: center;
        text-align: center;
        min-height: 44px; /* Better touch targets */
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width:992px){
    .mobile-drawer{display:block;}
    [data-mobile-nav]{display:none !important;}
    .mobile-drawer{position:fixed;inset:0;z-index:14000;pointer-events:none;opacity:0;transition:opacity .35s ease;}
    body.mobile-drawer-open .mobile-drawer{pointer-events:auto;opacity:1;}
    .mobile-drawer::before{content:"";position:absolute;inset:0;background:rgba(15,23,42,.6);backdrop-filter:blur(6px);}
    .mobile-drawer-inner{position:absolute;top:0;right:0;height:100%;width:100%;max-width:420px;background:linear-gradient(165deg,#0f172a 0%,#1e3a8a 100%);display:flex;flex-direction:column;border-left:1px solid rgba(255,255,255,.08);box-shadow:-8px 0 40px -10px rgba(0,0,0,.5);transform:translateX(100%);transition:transform .55s cubic-bezier(.65,.05,.36,1);}
    body.mobile-drawer-open .mobile-drawer-inner{transform:translateX(0);}
    .mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 1.4rem;background:rgba(255,255,255,.04);border-bottom:1px solid rgba(255,255,255,.08);}
    .mobile-drawer-head .md-brand{display:flex;align-items:center;gap:.65rem;font-weight:600;color:#fff;font-size:1rem;letter-spacing:.5px;}
    .mobile-drawer-head .md-title{font-size:1rem;font-weight:600;}
    .mobile-drawer-head .md-close{background:rgba(255,255,255,.15);border:0;width:42px;height:42px;border-radius:14px;color:#fff;font-size:1.4rem;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;}
    .mobile-drawer-head .md-close:active{transform:scale(.9);}
    .mobile-drawer-body{flex:1;overflow-y:auto;padding:1.2rem .9rem .9rem;display:flex;flex-direction:column;gap:.55rem;}
    .mobile-drawer-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55rem;width:100%;}
    .mobile-drawer-item{margin:0;padding:0;}
    .mobile-drawer-link{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:#fff;font-weight:500;padding:.95rem 1rem;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);font-size:.95rem;position:relative;}
    .mobile-drawer-link:hover{background:rgba(255,255,255,.12);}
    .mobile-drawer-sub{list-style:none;margin:.3rem 0 0 .5rem;padding:0;display:flex;flex-direction:column;gap:.4rem;}
    .mobile-drawer-sub > li > a{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);padding:.65rem .85rem;border-radius:12px;color:#fff;font-size:.85rem;text-decoration:none;}
    .mobile-drawer-foot{padding:1rem 1.25rem 1.4rem;border-top:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);}
    .mobile-drawer-foot .btn{border-radius:14px;font-weight:600;padding:.9rem 1.1rem;}
    body.mobile-drawer-open{overflow:hidden;}
}

    @media (min-width:993px){
        .header .header-content{display:flex;align-items:center;gap:.75rem;}
        .ghost-menu-nav{flex:1 1 auto;}
        .ghost-menu-nav .ghost-menu-list{display:flex;flex-wrap:nowrap;align-items:center;gap:.55rem;margin:0;}
        .ghost-menu-nav .ghost-menu-item{white-space:nowrap;}
        .ghost-menu-nav .ghost-menu-item > a.nav-link{display:inline-flex;align-items:center;gap:.35rem;padding:.45rem .7rem;border-radius:10px;font-size:.85rem;line-height:1.1;}
        .ghost-menu-nav .ghost-menu-item > a.nav-link i{font-size:.9rem;}
        .ghost-menu-nav .ghost-menu-item > a.nav-link:hover{background:rgba(0,0,0,.06);}
        header.header .logo{flex:0 0 auto;font-size:1rem;padding:.35rem .55rem;border-radius:10px;}
    }