/* Custom CSS styles for the Vacation Management System */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(7, 118, 146, 0.89);
    display: block !important;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

#sidebarMenu {
    display: block !important;
}

.nav-link {
    font-weight: 500;
    color: #333;
}

.nav-link.active {
    color: #2470dc;
}

.nav-link:hover {
    color: #0d6efd;
}

/* Icon Box for Dashboard Cards */
.icon-box {
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feather icons */
.feather {
    width: 20px;
    height: 20px;
    vertical-align: text-bottom;
}

.feather-small {
    width: 16px;
    height: 16px;
}

/* Custom Card Styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(4, 147, 243, 0.918);
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: 500;
}

/* Custom Form Styles */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Login Form */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    max-width: 400px;
    width: 100%;
}

/* Tables */
.table th {
    font-weight: 600;
    color: #495057;
}

/* Calendar Styles */
.calendar-day {
    min-height: 120px;
    border: 1px solid #dee2e6;
    padding: 5px;
}

.calendar-weekend {
    background-color: #f8f9fa;
}

.calendar-vacation {
    background-color: rgba(25, 135, 84, 0.2);
    border-radius: 4px;
    margin-bottom: 2px;
    padding: 2px 4px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-bottom: 1rem;
    }
    
    .sidebar-sticky {
        height: auto;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Print Styles - for reports */
@media print {
    .sidebar, .no-print {
        display: none !important;
    }
    
    .main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .card {
        break-inside: avoid;
        border: none;
        box-shadow: none;
    }
}

/* Animation for loading states */
.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}


/* Relógio Analógico Estilizado */
#analog-clock {
    width: 180px;
    height: 180px;
    border: 6px solid #007bff;
    border-radius: 50%;
    position: relative;
    margin: auto;
    background-color: #fff;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    background-color: #333;
    transform: rotate(90deg);
    border-radius: 2px;
}

#hour-hand {
    width: 5px;
    height: 40px;
    background-color: #333;
    z-index: 3;
}

#minute-hand {
    width: 3px;
    height: 60px;
    background-color: #007bff;
    z-index: 2;
}

#second-hand {
    width: 2px;
    height: 75px;
    background-color: red;
    z-index: 1;
}

.center-dot {
    width: 10px;
    height: 10px;
    background: black;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}
