/* ===== Month Selector ===== */
.month-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-card);
    color: var(--text);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.month-label {
    font-size: 16px;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
}
.month-arrow {
    color: var(--primary);
    font-size: 20px;
    padding: 4px 8px;
    cursor: pointer;
    user-select: none;
}
.month-arrow:hover {
    text-decoration: none;
    opacity: 0.7;
}
.month-arrow.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ===== GO Status Table ===== */
.go-status-table {
    width: 100%;
    max-width: 500px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 auto 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.go-status-table thead th {
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 10px 12px;
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.go-status-table thead th:not(:last-child) {
    border-right: 1px solid var(--border);
}
.go-status-table tbody td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}
.go-status-table tbody td:not(:last-child) {
    border-right: 1px solid var(--border);
}
.go-status-table tbody tr:last-child td {
    border-bottom: none;
}
.go-status-table tbody td:first-child {
    font-weight: 600;
    text-align: left;
}

/* ===== Calendar Table ===== */
.calendar-table-wrapper {
    overflow-x: auto;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
}
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    font-size: 13px;
}
.calendar-table thead th {
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 7px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    min-width: 28px;
}
.calendar-table thead th.weekend-header {
    background: var(--bg-surface);
    color: var(--text-muted);
}
.calendar-table tbody td {
    padding: 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    height: 30px;
    min-width: 28px;
}
.calendar-table tbody tr:hover td {
    background-color: rgba(91, 156, 246, 0.12);
}
.calendar-table tbody tr:hover .sticky-col {
    background-color: rgba(91, 156, 246, 0.18);
}

/* Sticky first column */
.sticky-col {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg-card);
    min-width: 140px;
    white-space: nowrap;
    padding-left: 8px !important;
    text-align: left !important;
    font-weight: 500;
    border-right: 2px solid var(--border);
}
thead .sticky-col {
    background: var(--table-header);
    z-index: 2;
}

/* ===== Date Cell Colors ===== */
.date-cell, .picker-cell {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.bg-odobreno { background: rgba(52, 211, 153, 0.25) !important; color: #6ee7b7; }
.bg-najavljeno { background: rgba(96, 165, 250, 0.25) !important; color: #93bbfd; }
.bg-iskoristeno { background: rgba(56, 189, 248, 0.2) !important; color: #7dd3fc; }
.bg-praznik { background: rgba(244, 114, 182, 0.2) !important; color: #f9a8d4; }
.bg-praznik-vikend { background: rgba(192, 80, 150, 0.18) !important; color: #e090c0; }
.bg-vikend {
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.04) 3px,
        rgba(255, 255, 255, 0.04) 6px
    ), var(--bg-raised) !important;
    color: var(--text-muted);
}
.bg-radni-proslost { background: var(--bg-raised); color: var(--text-muted); }
.bg-radni-buducnost { background: var(--bg-surface); color: var(--text-secondary); }

.date-cell.clickable {
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.1s;
}
.date-cell.clickable:hover {
    box-shadow: inset 0 0 0 2px var(--primary);
    transform: scale(1.1);
    z-index: 1;
    position: relative;
}

/* ===== Legend ===== */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.legend-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Calendar Pickers (My Vacation) ===== */
.calendar-pickers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
@media (max-width: 900px) {
    .calendar-pickers {
        grid-template-columns: 1fr;
    }
}

.calendar-picker {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
}
.calendar-picker-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 0 12px var(--primary-glow);
}
.picker-header {
    background: var(--bg-surface);
    color: var(--text);
    padding: 6px 8px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.picker-arrow {
    color: var(--primary);
    padding: 2px 6px;
    font-size: 16px;
    border-radius: 4px;
    transition: background 0.12s;
}
.picker-arrow:hover {
    background: var(--primary-glow);
    text-decoration: none;
}
.picker-arrow-spacer {
    width: 28px;
}
.picker-table {
    width: 100%;
    border-collapse: collapse;
}
.picker-table thead th {
    padding: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.picker-cell {
    padding: 7px 4px;
    text-align: center;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: default;
}
.picker-cell.clickable {
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.1s;
}
.picker-cell.clickable:hover {
    box-shadow: inset 0 0 0 2px var(--primary);
    transform: scale(1.15);
    z-index: 1;
    position: relative;
}
.picker-empty {
    background: var(--bg);
    border: 1px solid var(--border);
}

/* ===== Najavljeni GO ===== */
.najavljeni-section {
    margin: 15px 0;
}
.najavljeni-section h3 {
    margin-bottom: 10px;
}
.najavljeni-table {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
}
.najavljeni-table thead th {
    padding: 6px 12px;
    color: #fff;
    font-weight: 600;
    text-align: center;
}
.najavljeni-table tbody td {
    padding: 6px 12px;
    border: 1px solid var(--border);
    text-align: center;
}
.najavljeni-pending {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-remove {
    background: none;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.btn-remove:hover {
    background: var(--danger);
    color: #fff;
}
