/* --- PAGRINDINIAI KINTAMIEJI --- */
:root {
    --primary: #3b82f6;       /* Ryški Tech Mėlyna (akcentams) */
    --bg-body: #f8fafc;       /* Labai šviesus, "švarus" fonas */
    --text-dark: #1e293b;     /* Pagrindinis tekstas */
    
    /* Navigacijos spalvos */
    --nav-bg-start: #0f172a;  /* Tamsiai tamsiai mėlyna (beveik juoda) */
    --nav-bg-end: #1e293b;    /* Šiek tiek šviesesnė (gradientui) */
    --nav-text: #e2e8f0;      /* Šviesiai pilka nuorodoms */
    --nav-hover: #ffffff;     /* Balta užvedus */
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* --- NAVIGACIJA (Tamsi Tech su Gradientu) --- */
.navtop {
    /* Gradientas iš kairės į dešinę: suteikia gylio */
    background: linear-gradient(90deg, var(--nav-bg-start) 0%, var(--nav-bg-end) 100%);
    height: 70px;
    width: 100%;
    border-bottom: 1px solid #334155; /* Tamsus rėmelis apačioje */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Logotipas */
.logo-area img {
    height: 40px; 
    width: auto;
    display: block;
    /* SVARBU: Jei jūsų logo juodas, šis filtras padarys jį baltą. 
       Jei logo jau spalvotas/baltas - ištrinkite šią eilutę: */
    filter: brightness(0) invert(1); 
}

/* Nuorodos */
.nav-links {
    display: flex;
    align-items: center;
    gap: 5px; /* Glaudžiau */
}

.nav-item {
    text-decoration: none;
    color: var(--nav-text); /* Šviesi spalva ant tamsaus fono */
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.nav-item i {
    color: #94a3b8; /* Ikonos kiek tamsesnės */
    font-size: 15px;
    transition: color 0.2s;
}

/* Užvedimo efektas (Hover) - "Glass" stilius */
.nav-item:hover {
    color: var(--nav-hover);
    background-color: rgba(255, 255, 255, 0.1); /* Permatomas baltas fonas */
}

.nav-item:hover i {
    color: var(--primary); /* Užvedus ikona tampa mėlyna */
}

/* Dešinė pusė */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.1); /* Vos matoma skiriamoji linija */
}

/* Profilio mygtukas - išsiskiriantis */
.profile-btn {
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 4px; /* Tech stilius dažnai naudoja mažesnį radiusą */
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
}

.profile-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.logout-btn {
    color: #94a3b8;
    font-size: 16px;
    padding: 8px;
    transition: color 0.2s;
}
.logout-btn:hover {
    color: #ef4444; /* Raudona */
}

/* --- TURINYS (Švarus ir baltas) --- */
.content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.content h2 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 700;
    border-left: 5px solid var(--primary); /* Akcentas kairėje */
    padding-left: 15px;
}

/* Kortelės */
.content > p, .content > div {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px; /* Kortelių kampai */
    padding: 30px;
    margin-bottom: 25px;
    /* Labai švelnus šešėlis gyliui */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Lentelės */
table { width: 100%; border-collapse: collapse; }
.content table td { padding: 15px 10px; border-bottom: 1px solid #f1f5f9; }
.content table td:first-child { font-weight: 600; color: #475569; width: 30%; }

/* --- FORMOS --- */
.login, .register {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    margin: 80px auto;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.login h1 { text-align: center; margin-bottom: 30px; color: var(--text-dark); }

input[type="text"], input[type="password"], input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}
input[type="submit"] {
    background-color: var(--nav-bg-start); /* Mygtukas tokios pat spalvos kaip Navigacija */
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
}
input[type="submit"]:hover {
    background-color: var(--primary);
}
/* --- DROPDOWN PAGRINDINIS --- */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

/* Pagrindinis sąrašas */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 280px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    top: 100%;
    left: 0;
    z-index: 2000;
    padding: 8px 0;
    animation: fadeInUp 0.2s ease-out;
}

/* Nematomas tiltas (kad meniu neužsidarytų) */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

/* Rodyti pagrindinį meniu */
.dropdown:hover > .dropdown-content {
    display: block;
}

/* --- MENIU ELEMENTAI --- */
.dropdown-content a {
    color: #334155;
    padding: 10px 20px;
    text-decoration: none;
    display: flex;
    justify-content: space-between; /* Kad rodyklytė būtų dešinėje */
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap; /* Kad tekstas nelūžtų */
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
    color: var(--primary);
    padding-left: 25px;
}

/* Kategorijų pavadinimai (ne paspaudžiami) */
.group-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    padding: 12px 20px 4px 20px;
    letter-spacing: 0.5px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
}
/* Pirmam elementui nereikia brūkšnio viršuje */
.group-title:first-child {
    border-top: none;
    margin-top: 0;
}

/* --- NESTED DROPDOWN (Meniu meniu viduje) --- */
.has-submenu {
    position: relative; /* Svarbu pozicionavimui */
}

/* Antras lygis (iššoka į šoną) */
.submenu {
    display: none;
    position: absolute;
    left: 100%; /* Iššoka dešinėje */
    top: -10px; /* Šiek tiek aukščiau, kad lygintųsi */
    background-color: #ffffff;
    min-width: 260px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px 0;
    margin-left: 10px; /* Tarpelis nuo tėvinio meniu */
}

/* Nematomas tiltas antram lygiui */
.submenu::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20px; /* Užpildo tarpą kairėje */
    width: 20px;
    height: 100%;
}

/* Rodyti antrą lygį užvedus ant tėvinio elemento */
.has-submenu:hover .submenu {
    display: block;
    animation: fadeInRight 0.2s ease-out;
}

/* Rodyklytė, rodanti, kad yra sub-meniu */
.fa-chevron-right {
    font-size: 10px;
    opacity: 0.5;
}

/* Animacijos */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Rodyklytė navigacijoje */
.fa-caret-down { margin-left: 8px; font-size: 12px; transition: transform 0.2s; }
.dropdown:hover .fa-caret-down { transform: rotate(180deg); }

/* --- MODERNŪS FORMOS ELEMENTAI (OVERRIDE) --- */

/* Konteineris formai */
.register-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 600px;
    margin: 40px auto;
}

.register-container h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Etiketės (Labels) */
label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b; /* Slate-500 */
    margin-bottom: 6px;
    margin-top: 15px;
}

/* Įvedimo laukai - Priverstinis stilius */
/* Naudojame !important tik ten, kur reikia permušti Bootstrap */
input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="tel"], 
input[type="number"], 
input[type="date"],
select,
.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px; /* Užapvalinti kampai */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    height: auto !important; /* Bootstrap mėgsta fiksuoti aukštį */
}

/* Fokusavimas (Paspaudus) */
input:focus, select:focus, .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    outline: none;
}

/* Select elementas */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Mygtukas */
input[type="submit"] {
    margin-top: 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    border: none;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
    transition: transform 0.1s;
}

input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -1px rgba(59, 130, 246, 0.5);
}

/* --- TELEFONO INPUT SUTVARKYMAS (intl-tel-input) --- */
.iti { width: 100%; }
.iti__flag { background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/img/flags.png"); }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag { background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/img/flags@2x.png"); }
}

/* --- TINKLELIS (GRID) --- */
/* Pakeičia seną Bootstrap row/col sistemą moderniu Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Du stulpeliai */
    gap: 20px; /* Tarpas tarp stulpelių */
}

/* Mobiliajame - vienas stulpelis */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
/* --- DARBUOTOJŲ KORTELĖS (GRID) --- */

.employee-grid {
    display: grid;
    /* Automatiškai rikiuoja korteles, min plotis 300px */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 24px; /* Tarpai tarp kortelių */
    margin-top: 30px;
}

.employee-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Hover efektas kortelei */
.employee-card:hover {
    transform: translateY(-4px); /* Pakyla į viršų */
    box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.1); /* Atsiranda šešėlis */
    border-color: var(--primary); /* Rėmelis pamėlynuoja */
}

/* Avataras */
.emp-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Apskritimas */
    object-fit: cover;
    border: 2px solid #f8fafc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Informacija */
.emp-info {
    flex: 1;
}

.emp-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
    text-decoration: none;
    display: block;
}

.emp-name:hover {
    color: var(--primary);
    text-decoration: underline;
}

.emp-role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
    background: #eff6ff; /* Labai šviesiai mėlyna */
    padding: 4px 8px;
    border-radius: 4px;
}

.emp-details {
    font-size: 13px;
    color: #64748b;
    line-height: 1.8;
}

.emp-details i {
    width: 20px;
    text-align: center;
    color: #94a3b8;
    margin-right: 5px;
}

/* ID Badge (kodas) */
.id-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 10px;
    font-weight: 700;
    color: #cbd5e1;
}

/* Telefono nuoroda */
.tel-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.tel-link:hover {
    color: var(--text-dark);
}
.card-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 10px;
}

/* Bendras mygtuko stilius */
.btn-action {
    flex: 1; /* Abu mygtukai užims po lygiai vietos */
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Valandų mygtukas (Žalsvas/Melsvas) */
.btn-time {
    background-color: #f0f9ff;
    color: #0369a1;
    border: 1px solid #e0f2fe;
}

.btn-time:hover {
    background-color: #e0f2fe;
    color: #0284c7;
    transform: translateY(-1px);
}

/* Redagavimo mygtukas (Pilkšvas) */
.btn-edit {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-edit:hover {
    background-color: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Formos pataisymas, kad mygtukas atrodytų gerai */
.card-actions form {
    flex: 1;
    display: flex;
}
.card-actions form button {
    width: 100%;
}
/* --- PAIEŠKOS JUOSTA (DBASE) --- */
.search-header {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

/* Paieškos laukelis */
.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Paieškos mygtukas */
.btn-search {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search:hover {
    background-color: #2563eb;
}

/* Atleidimo priežasties stilius kortelėje */
.reason-box {
    margin-top: 15px;
    background-color: #fef2f2; /* Šviesiai raudona */
    border: 1px solid #fee2e2;
    color: #b91c1c; /* Tamsiai raudona */
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.reason-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    display: block;
    margin-bottom: 4px;
    color: #ef4444;
}
/* --- DASHBOARD STILIUS (leader_jobs.php) --- */

/* Statistinės kortelės viršuje */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.blue { background: #eff6ff; color: #3b82f6; }
.stat-icon.green { background: #f0fdf4; color: #22c55e; }
.stat-icon.red { background: #fef2f2; color: #ef4444; }
.stat-icon.orange { background: #fff7ed; color: #f97316; }

.stat-info h4 { margin: 0; font-size: 24px; font-weight: 700; color: #1e293b; }
.stat-info p { margin: 0; font-size: 13px; color: #64748b; text-transform: uppercase; font-weight: 600; }

/* Restoranų tinklelis */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Dvi kortelės eilėje ant didelio ekrano */
    gap: 25px;
}

/* Accordion modifikacija, kad derėtų prie dizaino */
.accordion-button {
    background-color: #f8fafc !important;
    color: #334155 !important;
    font-weight: 600;
    border: none;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
}
.accordion-item {
    border: 1px solid #f1f5f9;
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Problemų sąrašas */
.issue-list li {
    font-size: 13px;
    border-left: 3px solid #ef4444;
    margin-bottom: 5px;
    background: #fff;
}
/* --- KONTAKTAI IR REMONTO ISTORIJA --- */

/* Padalija ekraną į dvi dalis (jei telpa) */
.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    align-items: start; /* Kad stulpeliai nesitemptų */
}

/* Bendras sąrašo konteineris */
.maintenance-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.maintenance-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #f8fafc;
}

.maintenance-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- KONTAKTŲ SĄRAŠAS --- */
.contact-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background-color: #f8fafc; }

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #eff6ff;
    color: #3b82f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.contact-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.contact-info p {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #64748b;
}

.contact-phone {
    font-size: 13px;
    font-weight: 600;
    color: #10b981; /* Žalia */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.contact-phone:hover { text-decoration: underline; }

/* --- DARBŲ ISTORIJA (Timeline stilius) --- */
.history-item {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 15px;
}
.history-item:last-child { border-bottom: none; }

.history-date {
    min-width: 80px;
    text-align: center;
}

.date-badge {
    background-color: #f1f5f9;
    color: #475569;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: block;
}

.history-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.history-content span {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.history-desc {
    margin-top: 8px;
    font-size: 13px;
    color: #334155;
    background: #fffbeb; /* Šviesiai gelsva pastaboms */
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #fef3c7;
}
/* --- ĮRANGOS VALDYMAS (Asset Cards) --- */

.equip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.equip-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.equip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.equip-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.equip-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-color: #f1f5f9;
    color: #64748b;
}

.equip-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.equip-title span {
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace; /* Kad kodas atrodytų techniškai */
}

/* Statuso juosta apačioje */
.status-bar {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-info {
    font-size: 12px;
    font-weight: 600;
}

.date-info.expired { color: #ef4444; }
.date-info.warning { color: #f59e0b; }
.date-info.valid { color: #10b981; }

.btn-icon {
    color: #94a3b8;
    transition: color 0.2s;
    font-size: 16px;
}
.btn-icon:hover { color: var(--primary); }

/* Būsenos taškas kortelės kampe */
.status-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
/* --- FAILŲ VALDYMAS (Cloud Drive Style) --- */

.file-manager-container {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Viršutinė juosta (Toolbar) */
.fm-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.fm-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.fm-search input {
    width: 100%;
    padding: 10px 15px 10px 40px; /* Vieta ikonai */
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
}
.fm-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.fm-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.fm-actions {
    display: flex;
    gap: 10px;
}

/* Aplankų tinklelis */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.folder-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
    display: block;
}

.folder-card:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-3px);
}

.folder-card.active {
    background: #eff6ff;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.folder-icon {
    font-size: 40px;
    color: #64748b; /* Pilka */
    margin-bottom: 10px;
    transition: color 0.2s;
}

.folder-card:hover .folder-icon, .folder-card.active .folder-icon {
    color: var(--primary); /* Mėlyna užvedus */
}

.folder-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ištrynimo mygtukas ant folderio */
.folder-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #ef4444;
    opacity: 0;
    transition: opacity 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}
.folder-card:hover .folder-delete { opacity: 1; }

/* Failų sąrašas */
.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table th {
    text-align: left;
    padding: 15px;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
}

.file-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14px;
}

.file-row:hover { background-color: #f8fafc; }

.file-icon {
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Failų ikonų spalvos */
.fa-file-pdf { color: #ef4444; }
.fa-file-word { color: #3b82f6; }
.fa-file-image { color: #a855f7; }
.fa-file-alt { color: #64748b; }

/* Modalai (Pop-up langai) */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* Tamsus fonas */
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.upload-area:hover { border-color: var(--primary); background: #eff6ff; }
/* CKEditor pataisymas, kad derėtų prie dizaino */
.cke_chrome {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    margin-bottom: 20px;
}

/* --- MODALAS (Iššokantis langas) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Tamsus fonas */
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.open .modal-box {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
}
.close-modal:hover { color: #ef4444; }

/* Naujas mygtukas kortelėje (Atsiliepimas) */
.btn-comment {
    background-color: #fdf4ff; /* Šviesiai violetinė */
    color: #9333ea;
    border: 1px solid #f3e8ff;
}
.btn-comment:hover {
    background-color: #f3e8ff;
    color: #7e22ce;
    transform: translateY(-1px);
}

/* Teksto laukas modale */
.modal-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-height: 150px;
    margin: 20px 0;
    font-family: inherit;
    resize: vertical;
    outline: none;
}
.modal-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* --- CALENDAR MODERN STYLE --- */
.calendar-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 20px;
}

.calendar-header {
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.month-title {
    margin: 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: capitalize;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #e2e8f0; /* Tarpai tarp celių */
    gap: 1px;
}

.day-name {
    background: #fff;
    padding: 15px 5px;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.day-cell {
    background: #fff;
    min-height: 120px;
    padding: 10px;
    position: relative;
    transition: background 0.2s;
}

.day-cell:hover {
    background: #f8fafc;
}

.day-cell.empty {
    background: #f1f5f9;
}

.day-cell.selected {
    background: #eff6ff;
}

.day-number {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.day-cell.selected .day-number {
    color: #2563eb;
}

/* Įvykių stilius */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-pill {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    transition: transform 0.1s, box-shadow 0.1s;
    background-color: #3b82f6; /* Default blue */
}

.event-pill:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}

/* Spalvos pagal klases */
.event-pill.green { background-color: #10b981; }
.event-pill.black { background-color: #1e293b; }
.event-pill.blue { background-color: #3b82f6; }
.event-pill.red { background-color: #ef4444; }
.event-pill.celebrate { background-color: #8b5cf6; background-image: linear-gradient(45deg, #8b5cf6, #d946ef); border:none;}
/* --- MODERNUS KALENDORIAUS VALDYMAS (TOOLBAR) --- */

.calendar-toolbar {
    background: #fff;
    border-radius: 12px;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

/* Kairė pusė: Mėnesio navigacija */
.month-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.month-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.month-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
    border-color: #cbd5e1;
}

.current-month-label {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-transform: capitalize;
    min-width: 120px;
    text-align: center;
}

/* Dešinė pusė: Pareigų perjungiklis (Pills) */
.role-pills {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.role-link {
    text-decoration: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.role-link:hover {
    color: #1e293b;
}

.role-link.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Mobilus vaizdas */
@media (max-width: 768px) {
    .calendar-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .month-controls {
        justify-content: space-between;
    }
    .role-pills {
        overflow-x: auto; /* Leidžia slinkti šonu jei netelpa */
    }
}
/* --- AKTYVŪS DARBUOTOJAI (Live Dashboard) --- */

/* Laiko juosta kortelėje */
.time-badge {
    background-color: #ecfdf5; /* Šviesiai žalia */
    color: #059669;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d1fae5;
}

/* Mygtukai kortelėje */
.action-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-stop {
    flex: 1;
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.btn-stop:hover { background-color: #fecaca; color: #b91c1c; }

.btn-edit-time {
    flex: 1;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.btn-edit-time:hover { background-color: #e2e8f0; color: #1e293b; }

/* Suvestinės juosta apačioje */
.summary-bar {
    display: flex;
    justify-content: space-around;
    background: #1e293b;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.summary-item {
    text-align: center;
}

.summary-count {
    font-size: 24px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
    color: #38bdf8; /* Šviesiai mėlyna */
}

.summary-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 1px;
}
/* --- TELEFONO MYGTUKAS --- */
/* --- NAUJAS TELEFONO STILIUS (Minimalistinis) --- */
.phone-row {
    display: flex;
    align-items: center;
    gap: 12px; /* Tarpas tarp ikonos ir numerio */
    margin-bottom: 15px;
    padding: 5px 0;
}

.phone-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9; /* Labai šviesiai pilka */
    color: #64748b; /* Tamsiau pilka ikona */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.phone-number-text {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
}

/* Užvedus pelytę - švelniai pamėlynuoja */
.phone-row:hover .phone-icon-circle {
    background-color: #eff6ff;
    color: #3b82f6;
}
.phone-row:hover .phone-number-text {
    color: #3b82f6;
}

/* --- SUVESTINĖS PATAISYMAS --- */
.summary-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #1e293b; /* Tamsiai mėlyna */
    color: #fff;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px; /* Tarpas apačioje */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.summary-count {
    font-size: 32px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
    color: #38bdf8 !important; /* Priverstinai ŽYDRA visiems skaičiams */
    line-height: 1;
}
/* --- SUVESTINĖ APAČIOJE (Aktyvūs darbuotojai) --- */

.summary-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    
    /* SVARBU: Tamsus fonas, kad matytųsi baltas tekstas */
    background-color: #0f172a; 
    color: #ffffff;
    
    padding: 25px;
    border-radius: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #1e293b;
}

.summary-item {
    text-align: center;
    position: relative;
}

/* Skaičius - didelis ir ryškus (Elektrinė žydra) */
.summary-count {
    font-size: 32px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
    color: #38bdf8; 
    line-height: 1;
}

/* Tekstas po skaičiumi */
.summary-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8; /* Pilkšva, kad neerzintų akių */
    letter-spacing: 1px;
    font-weight: 600;
}
/* --- MODALAS SU DETALIAIS LAIKAIS --- */
.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.details-table th {
    background: #f1f5f9;
    padding: 10px;
    text-align: left;
    font-weight: 700;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.details-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.details-table tr:last-child td { border-bottom: none; }
.details-table tr:hover { background-color: #f8fafc; }

/* Statuso taškas lentelėje */
.dot-20 {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: #f59e0b; /* Geltona */
    margin-right: 5px;
}
.dot-reg {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: #3b82f6; /* Mėlyna */
    margin-right: 5px;
}

/* Padarome pelę rankute užvedus ant valandų */
.stat-box.clickable {
    cursor: pointer;
    transition: transform 0.1s;
}
.stat-box.clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    z-index: 2;
}
/* --- LEADERBOARD (TOPAI) --- */

.leaderboard-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.rank-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s;
}

.rank-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* TOP 3 STILIAI */
.rank-card.gold {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}
.rank-card.silver {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
}
.rank-card.bronze {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
}

.rank-number {
    font-size: 24px;
    font-weight: 800;
    width: 50px;
    text-align: center;
    margin-right: 20px;
    color: #cbd5e1; /* Pilka paprastiems */
}

/* Spalvoti skaičiai TOP 3 */
.gold .rank-number { color: #d97706; }   /* Auksas */
.silver .rank-number { color: #64748b; } /* Sidabras */
.bronze .rank-number { color: #c2410c; } /* Bronza */

.rank-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rank-info { flex: 1; }
.rank-name { font-size: 18px; font-weight: 700; color: #1e293b; margin: 0; }
.rank-sub { font-size: 13px; color: #64748b; margin: 0; }

.rank-stats {
    text-align: right;
}
.stat-main { font-size: 20px; font-weight: 800; color: #1e293b; display: block; }
.stat-sub { font-size: 12px; color: #64748b; text-transform: uppercase; font-weight: 600; }

/* --- DASHBOARD STILIUS (leader_jobs.php) --- */

/* Statistinės kortelės viršuje */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.blue { background: #eff6ff; color: #3b82f6; }
.stat-icon.green { background: #f0fdf4; color: #22c55e; }
.stat-icon.red { background: #fef2f2; color: #ef4444; }
.stat-icon.orange { background: #fff7ed; color: #f97316; }

.stat-info h4 { margin: 0; font-size: 24px; font-weight: 700; color: #1e293b; }
.stat-info p { margin: 0; font-size: 13px; color: #64748b; text-transform: uppercase; font-weight: 600; }

/* Restoranų tinklelis */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Dvi kortelės eilėje ant didelio ekrano */
    gap: 25px;
}

/* Accordion modifikacija, kad derėtų prie dizaino */
.accordion-button {
    background-color: #f8fafc !important;
    color: #334155 !important;
    font-weight: 600;
    border: none;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
}
.accordion-item {
    border: 1px solid #f1f5f9;
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Problemų sąrašas */
.issue-list li {
    font-size: 13px;
    border-left: 3px solid #ef4444;
    margin-bottom: 5px;
    background: #fff;
}
/* --- SLAPTAŽODŽIŲ KORTELĖS --- */

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.cred-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.cred-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.cred-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.cred-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Unikalios spalvos */
.icon-spotify { background: #dcfce7; color: #1ed760; }
.icon-cam { background: #e0f2fe; color: #0ea5e9; }
.icon-mail { background: #f3e8ff; color: #a855f7; }

.cred-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.cred-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cred-field {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.cred-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.cred-value {
    font-family: 'Courier New', monospace; /* Tech stiliaus šriftas */
    font-size: 14px;
    color: #334155;
    font-weight: 600;
    word-break: break-all;
}

.security-note {
    margin-top: 30px;
    padding: 15px;
    background-color: #fff7ed;
    border: 1px solid #ffedd5;
    color: #c2410c;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* --- LOGIN PUSLAPIS (Index) --- */

body.login-page {
    /* Tamsiai mėlynas (Slate 900) fonas */
    background-color: #0f172a; 
    
    /* Subtilus raštas fone, kad nebūtų nuobodu */
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
        
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}
.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid #fff;
}

.login-logo {
    max-width: 180px;
    margin-bottom: 30px;
    height: auto;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.login-header p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 30px;
}

.input-group-login {
    margin-bottom: 20px;
    text-align: left;
}

.input-group-login label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.input-group-login input {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background-color: #f8fafc;
    transition: all 0.2s;
}

.input-group-login input:focus {
    background-color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}

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

.login-footer {
    margin-top: 25px;
    font-size: 12px;
    color: #94a3b8;
}
/* --- LOGOTIPAS (Jokių filtrų, paliekam baltą) --- */
.logo-area img, .login-logo {
    /* Užtikrinam, kad jokie filtrai neveiktų */
    filter: none !important; 
}

        /* --- LAIKO APSKAITOS LAIKRODIS --- */
.live-clock {
    font-size: 4rem; /* Labai didelis */
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin: 10px 0 5px 0;
    font-feature-settings: "tnum"; /* Kad skaičiai nešokinėtų keičiantis sekundėms */
    letter-spacing: -2px;
}

.live-date {
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Kodų įvedimo laukelis - didesnis ir centre */
.pin-input {
    text-align: center;
    letter-spacing: 5px;
    font-size: 24px !important;
    font-weight: 700;
    padding: 15px !important;
}
/* --- DARBUOTOJO TERMINALAS --- */

.terminal-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.terminal-header {
    background: #1e293b;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.terminal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.terminal-name {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.terminal-role {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 30px;
}

.terminal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.t-stat-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.t-stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: block;
}
.t-stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
}

/* Didieji mygtukai */
.big-action-btn {
    display: block;
    width: 100%;
    padding: 20px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.1s;
    margin-bottom: 15px;
    text-decoration: none;
}

.btn-start { background: #10b981; color: #fff; box-shadow: 0 4px 0 #059669; }
.btn-start:active { transform: translateY(4px); box-shadow: none; }

.btn-start-20 { background: #f59e0b; color: #fff; box-shadow: 0 4px 0 #d97706; font-size: 16px; }
.btn-start-20:active { transform: translateY(4px); box-shadow: none; }

.btn-stop-work { background: #ef4444; color: #fff; box-shadow: 0 4px 0 #b91c1c; }
.btn-stop-work:active { transform: translateY(4px); box-shadow: none; }

/* Laiko skaitiklis */
.live-timer {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
}

.working-info {
    text-align: center;
    color: #64748b;
    margin-bottom: 10px;
}
/* --- DARBUOTOJO DASHBOARD (Index2) --- */

.emp-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Kairė siauresnė, Dešinė (kalendorius) platesnė */
    gap: 30px;
    max-width: 1400px;
    margin: 30px auto;
    align-items: start;
}

/* Kairioji pusė (Profilis ir veiksmai) */
.action-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px; /* Slenkant puslapį, ši dalis seks iš paskos */
}

.ac-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 5px solid #f1f5f9;
    margin-bottom: 15px;
    object-fit: cover;
}

.ac-name { font-size: 24px; font-weight: 800; color: #1e293b; margin: 0; }
.ac-role { font-size: 14px; color: #64748b; margin-bottom: 25px; }

/* Dideli mygtukai */
.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: transform 0.1s, box-shadow 0.1s;
    text-decoration: none;
    color: #fff;
}
.hero-btn:active { transform: translateY(3px); box-shadow: none; }

.btn-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 4px 0 #047857; }
.btn-orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); box-shadow: 0 4px 0 #b45309; font-size: 15px; }
.btn-red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); box-shadow: 0 4px 0 #b91c1c; }

/* Statistika mažuose kvadratėliuose */
.mini-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
    text-align: left;
}
.ms-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 10px;
}
.ms-label { font-size: 10px; text-transform: uppercase; color: #64748b; display: block; font-weight: 700; }
.ms-val { font-size: 14px; font-weight: 600; color: #334155; }
.ms-val.bad { color: #ef4444; }
.ms-val.good { color: #10b981; }

/* Dešinioji pusė (Kalendorius) */
.calendar-container {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobilus vaizdas */
@media (max-width: 900px) {
    .emp-dashboard-grid { grid-template-columns: 1fr; }
    .action-card { position: static; }
}

/* Laikmatis */
.timer-display {
    font-size: 48px;
    font-weight: 800;
    color: #3b82f6;
    margin: 20px 0;
    font-family: monospace;
    letter-spacing: -2px;
}
/* --- SPALVOTI STATISTIKOS KVADRATĖLIAI --- */
.t-stat-box.stat-good {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}
.t-stat-box.stat-warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
}
.t-stat-box.stat-bad {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Kad etiketė (Label) irgi nusidažytų */
.t-stat-box.stat-good .t-stat-label,
.t-stat-box.stat-warn .t-stat-label,
.t-stat-box.stat-bad .t-stat-label {
    color: inherit;
    opacity: 0.9;
}
.t-stat-box.stat-good .t-stat-val,
.t-stat-box.stat-warn .t-stat-val,
.t-stat-box.stat-bad .t-stat-val {
    color: inherit;
}
/* --- LEADER JOBS (VADOVO DARBAI) --- */

/* Progreso juosta */
.progress-container {
    background-color: #f1f5f9;
    border-radius: 50px;
    height: 10px;
    width: 100%;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 50px;
    transition: width 0.5s ease;
}

/* Checklist elementas */
.task-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.task-item:hover {
    border-color: #3b82f6;
    transform: translateX(5px);
}

.task-item.completed {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.task-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}

/* Savininko kortelės */
.owner-task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.ot-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.ot-header {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ot-task-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}
.ot-task-row:last-child { border-bottom: none; }

/* Grafikų konteineris */
.charts-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.chart-box {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
/* --- KPI LENTELĖS (DASHBOARD) --- */
.kpi-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.kpi-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
}
.kpi-table tr:last-child td { border-bottom: none; }

.kpi-table .val {
    text-align: right;
    font-weight: 700;
    color: #1e293b;
}

.kpi-table .val.bad { color: #dc2626; }   /* Raudona */
.kpi-table .val.good { color: #10b981; }  /* Žalia */
.kpi-table .val.warn { color: #d97706; }  /* Oranžinė */

.kpi-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
}
.kpi-main-num {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
/* --- MODERN KPI WIDGETS --- */

.kpi-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.widget-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    text-decoration: none; /* Nuorodoms */
    color: inherit;
}
.widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
}

/* Antraštė su ikona */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.widget-title {
    font-size: 13px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 1px;
}

.widget-icon {
    width: 45px; height: 45px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}

/* Didysis skaičius */
.widget-value {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 5px;
}

/* Papildoma info apačioje */
.widget-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #64748b;
}

/* --- SPECIFINIAI STILIAI --- */

/* 1. VALANDOS (Mėlyna/Oranžinė) */
.theme-hours .widget-icon { background: #eff6ff; color: #3b82f6; }
.hours-breakdown {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #f1f5f9;
}
.hb-reg { background: #3b82f6; height: 100%; }
.hb-bonus { background: #f59e0b; height: 100%; }

.hours-legend {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 8px;
    font-weight: 600;
}
.hl-item { display: flex; align-items: center; gap: 5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* 2. UŽDUOTYS (Violetinė) */
.theme-tasks .widget-icon { background: #f3e8ff; color: #8b5cf6; }
.progress-bg {
    background: #f1f5f9; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 10px;
}
.progress-fill {
    height: 100%; background: linear-gradient(90deg, #8b5cf6, #d946ef);
    border-radius: 6px; transition: width 0.5s ease;
}

/* 3. PROBLEMOS (Raudona/Žalia) */
.theme-issues.good .widget-icon { background: #dcfce7; color: #16a34a; }
.theme-issues.bad .widget-icon { background: #fee2e2; color: #ef4444; }
.theme-issues.bad { border-color: #fecaca; background: #fffafa; }

.issue-row {
    display: flex; justify-content: space-between;
    font-size: 12px; margin-bottom: 4px;
    font-weight: 600;
}
.ir-label { color: #64748b; }
.ir-val.bad { color: #dc2626; }
.ir-val.good { color: #16a34a; }

/* Mygtukas kortelėje */
.card-link {
    font-size: 12px; font-weight: 700; color: #3b82f6; text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px; margin-top: 5px;
}
.card-link:hover { text-decoration: underline; }

/* --- VEIKSMŲ ŽURNALAS (TIMELINE) --- */

.timeline {
    position: relative;
    padding: 20px 0;
}

/* Vertikali linija */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

/* Rutuliukas ant linijos */
.timeline-marker {
    position: absolute;
    left: 11px;
    top: 15px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #cbd5e1;
    border-radius: 50%;
    z-index: 2;
}

.timeline-item.danger .timeline-marker { border-color: #ef4444; }
.timeline-item.warning .timeline-marker { border-color: #f59e0b; }
.timeline-item.success .timeline-marker { border-color: #10b981; }

.timeline-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}
.timeline-card:hover {
    transform: translateX(5px);
    border-color: #cbd5e1;
}

.log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 5px;
}

.log-rest { font-weight: 700; color: #334155; text-transform: uppercase; }
.log-time { font-family: monospace; }
.log-text { color: #1e293b; font-size: 14px; line-height: 1.5; }

/* Paryškinti raktažodžiai */
.keyword-del { color: #dc2626; font-weight: 700; background: #fef2f2; padding: 0 4px; border-radius: 4px; }
.keyword-edit { color: #d97706; font-weight: 700; background: #fffbeb; padding: 0 4px; border-radius: 4px; }

/* --- PLANUOKLIS (Drag & Drop) --- */
.planner-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr; /* Kairė siaura, Dešinė plati */
    gap: 20px;
    height: calc(100vh - 100px);
}

/* Kairė: Darbuotojų sąrašas */
.planner-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ps-header { padding: 15px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-weight: 700; }
.ps-list { flex: 1; overflow-y: auto; padding: 10px; }

.draggable-worker {
    padding: 10px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}
.draggable-worker:hover { border-color: #3b82f6; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.draggable-worker:active { cursor: grabbing; }

/* Dešinė: Kalendorius */
.planner-calendar {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.pc-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.pc-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 dienos */
    grid-auto-rows: minmax(100px, 1fr);
    overflow-y: auto;
}

.pc-day-header {
    background: #f1f5f9;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    color: #64748b;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.pc-cell {
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 5px;
    position: relative;
    transition: background 0.2s;
}
.pc-cell.drag-over { background-color: #eff6ff; border: 2px dashed #3b82f6; }

.pc-date-num {
    font-size: 12px; font-weight: 700; color: #94a3b8; margin-bottom: 5px; display: block; text-align: right;
}

/* Pamainos "čipsas" kalendoriuje */
.shift-chip {
    background: #e0f2fe;
    border-left: 3px solid #0284c7;
    color: #0369a1;
    padding: 4px 6px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shift-chip:hover { background: #bae6fd; }

/* Exceliui paslėpta lentelė */
#exportTable { display: none; }




/* --- KALENDORIAUS PATAISYMAS MOBILIAM (RESPONSIVE) --- */

.calendar-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-top: 20px;
    
    /* SVARBU: Leidžia slinkti į šoną, jei netelpa */
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; /* Sklandus slinkimas iPhone telefonuose */
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #e2e8f0;
    gap: 1px;
    
    /* SVARBU: Priverčiame kalendorių būti bent 800px pločio.
       Taip telefonas "nespaus" dienų, o leis jas pasiekti slenkant pirštu į šoną. */
    min-width: 800px; 
}

/* Mobiliems telefonams dar galime pamažinti tarpus */
@media (max-width: 768px) {
    .day-cell {
        min-height: 80px; /* Šiek tiek žemesni langeliai telefone */
        padding: 5px;
    }
    
    .event-pill {
        font-size: 10px; /* Mažesnis šriftas įvykiams */
        padding: 2px 4px;
    }
    
    .content {
        padding: 10px; /* Mažesni tarpai nuo kraštų */
    }
}
/* --- PLANUOKLIO PATAISYMAI --- */

/* Kad pamaina užimtų visą langelį ir būtų lengviau paspausti */
.shift-chip {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 11px;
    padding: 5px;
}

/* Jei yra pamaina, paslepiame pliusą (valdoma per JS) */
.pc-cell.has-shift .cell-add {
    display: none;
}
/* --- PLANUOKLIO STATUSAI --- */

/* Spalvos pagal tipą */
.shift-work { background: #e0f2fe; border-left: 3px solid #0284c7; color: #0369a1; }
.shift-sick { background: #fef2f2; border-left: 3px solid #dc2626; color: #b91c1c; } /* Liga */
.shift-vacation { background: #f0fdf4; border-left: 3px solid #16a34a; color: #15803d; } /* Atostogos */
.shift-study { background: #fdf4ff; border-left: 3px solid #9333ea; color: #7e22ce; } /* Mokslai */
.shift-awol { background: #1e293b; border-left: 3px solid #000; color: #fff; } /* Pravaikšta */

/* Įspėjimo pranešimas modale */
.validation-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 15px;
    display: none; /* Pagal nutylėjimą paslėpta */
}
/* ==========================================
   MOBILE FIXED + CLEAN RESPONSIVE NAVIGATION
========================================== */

@media (max-width: 900px) {

    /* NAV bendri */
    .navtop {
        height: auto;
        padding: 10px 0;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 15px;
        width: 100%;
    }

    /* LOGO */
    .logo-area img {
        height: 36px;
    }

    /* BURGER BUTTON */
    .mobile-toggle {
        display: block;
        font-size: 28px;
        padding: 8px 12px;
        cursor: pointer;
        color: white;
        z-index: 2000;
    }

    /* HIDE desktop menus initially */
    .nav-links,
    .user-actions {
        display: none;
    }

    /* SHOW when navtop.open */
    .navtop.open .nav-links,
    .navtop.open .user-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        background: rgba(30, 41, 59, 0.9);
        backdrop-filter: blur(6px);
        border-radius: 0;
        margin-top: 10px;
    }

    /* NAV ITEMS */
    .nav-links a,
    .dropdown > a {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* DROPDOWN CONTENT */
    .dropdown-content {
        position: relative;
        width: 100%;
        background: rgba(255,255,255,0.05);
        border-left: 3px solid var(--primary);
        padding: 5px 0;
        display: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    /* DROPDOWN ITEMS */
    .dropdown-content a {
        padding: 12px 25px;
        font-size: 15px;
    }

    .group-title {
        padding: 8px 25px;
        font-size: 12px;
        opacity: 0.7;
    }

    /* USER ACTIONS (PROFILIS + LOGOUT) */
    .user-actions {
        padding: 0;
        margin: 5px 0 0 0;
        border-left: none;
        gap: 10px;
        width: 100%;
    }

    .profile-btn,
    .logout-btn {
        width: 100%;
        text-align: center;
    }

    .logout-btn {
        padding: 12px;
        font-size: 18px;
    }
}
