/* Odsotnost – frontend CSS */

/* Reset za WP teme */
.odsotnost-app, .odsotnost-login-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
}

/* Login */
.odsotnost-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: #f5f5f5;
}

.odsotnost-login-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.odsotnost-login-logo {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #888;
    margin-bottom: 20px;
}

.odsotnost-login-box h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 24px;
}

/* Header */
.odsotnost-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.odsotnost-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.header-ime {
    font-size: 14px;
    color: #555;
}

.header-nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: background .15s;
}

.nav-link:hover { background: #f0f0f0; }
.nav-link.active { background: #1D9E75; color: #fff; }
.nav-link-odjava { color: #999; }

/* Main */
.odsotnost-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

/* Fields */
.field-group {
    margin-bottom: 16px;
}

.field-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .15s;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: #1D9E75;
}

/* Buttons */
.btn-primary {
    background: #1D9E75;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
    width: 100%;
}

.btn-primary:hover { background: #168a64; }
.btn-primary:disabled { background: #99cfc0; cursor: not-allowed; }

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 15px;
    cursor: pointer;
    margin-left: 8px;
}

.btn-secondary:hover { background: #e0e0e0; }

/* Sporočila */
.msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 10px;
}

.msg-error   { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6c6; }
.msg-success { background: #f0fff8; color: #1D9E75; border: 1px solid #b2e8d8; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-box {
    background: #fff;
    border-radius: 10px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

.modal-box h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px;
}

.modal-datumi {
    font-size: 15px;
    color: #1D9E75;
    font-weight: 500;
    margin: 0 0 20px;
}

.modal-actions {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.modal-actions .btn-primary { width: auto; }

/* Legenda */
.dash-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
}

.legenda-item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--barva, #888);
    flex-shrink: 0;
}

/* Navodilo */
.dash-navodilo {
    background: #f0f9f5;
    border: 1px solid #c0e8d8;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #2a6a50;
    margin-bottom: 16px;
}

/* Tabela */
.odsotnost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 12px;
}

.odsotnost-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
    font-size: 13px;
    color: #555;
}

.odsotnost-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* Badge-i */
.vrsta-badge, .status-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.vrsta-dopust             { background: #e1f5ee; color: #0f6e56; }
.vrsta-izredni_dopust     { background: #eeedfe; color: #3c3489; }
.vrsta-bolniska_spremstvo { background: #fcebeb; color: #a32d2d; }
.vrsta-nega               { background: #faeeda; color: #854f0b; }
.vrsta-izobrazevanje      { background: #e6f1fb; color: #0c447c; }

.status-pending  { background: #fff8e6; color: #8a6200; }
.status-odobren  { background: #e1f5ee; color: #0f6e56; }
.status-zavrnjen { background: #fcebeb; color: #a32d2d; }

/* Filter bar */
.filter-bar {
    margin-bottom: 16px;
    font-size: 14px;
}

.filter-bar select {
    margin-left: 8px;
    padding: 5px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-size: 14px;
}

/* FullCalendar overrides */
.fc .fc-button-primary {
    background-color: #1D9E75 !important;
    border-color: #1D9E75 !important;
}

.fc .fc-button-primary:hover {
    background-color: #168a64 !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #0f6e56 !important;
}

.fc-event { cursor: pointer; }

.event-pending { opacity: .6; }

.fc-day-today { background: #f0fff8 !important; }

/* Zasedeni dnevi - rdeča ozadja, ni klikabilno */
.fc-daygrid-day.dan-zaseden,
.fc-daygrid-day.dan-zaseden .fc-daygrid-day-frame,
.fc-daygrid-day.dan-zaseden .dan-zaseden-frame {
    background-color: #fff0f0 !important;
    cursor: not-allowed !important;
}

.fc-daygrid-day.dan-zaseden .fc-daygrid-day-number {
    color: #e24b4a !important;
    font-weight: 600;
}

.zaseden-ikona {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 11px;
    color: #e24b4a;
    font-weight: 700;
    pointer-events: none;
    line-height: 1;
}

/* Zavrnjeni eventi - rdeča barva, prečrtano */
.fc .event-zavrnjen {
    opacity: 0.7;
    text-decoration: line-through;
}
