:root {
    --primary-color: #2dbec6;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #2dbec6;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #143345;
    --dark-primary: #143345;
    --accent-color: #2dbec6;
    --bs-primary: #2dbec6;
    --bs-info: #2dbec6;
}

/* Bootstrap Overrides */
.btn-primary {
    background-color: #2dbec6;
    border-color: #2dbec6;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #25a8b0;
    border-color: #25a8b0;
}

.btn-outline-primary {
    color: #2dbec6;
    border-color: #2dbec6;
}

.btn-outline-primary:hover {
    background-color: #2dbec6;
    border-color: #2dbec6;
}

.text-primary {
    color: #2dbec6 !important;
}

.bg-primary {
    background-color: #2dbec6 !important;
}

.border-primary {
    border-color: #2dbec6 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #143345 0%, #2dbec6 100%);
}

.login-page {
    background: linear-gradient(135deg, #143345 0%, #2dbec6 100%);
}

.card {
    border: none;
    border-radius: 15px;
}

.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #143345 0%, #1a4a5a 100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow: visible; /* Allow dropdown to overflow */
    position: relative;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.main-content {
    background-color: #f8f9fc;
    min-height: 100vh;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-card {
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.badge-status {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.table-responsive {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.btn-action {
    margin: 2px;
}

.modal-header {
    background: linear-gradient(135deg, #143345 0%, #2dbec6 100%);
    color: white;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

.input-group-text {
    background-color: var(--light-color);
}

.card-header {
    background: linear-gradient(135deg, #143345 0%, #2dbec6 100%);
    color: white;
    font-weight: 600;
}

/* Flatpickr Calendar Styling */
.flatpickr-calendar {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.flatpickr-months {
    background: linear-gradient(135deg, #143345 0%, #2dbec6 100%);
    border-radius: 10px 10px 0 0;
    padding: 10px 0;
}

.flatpickr-month {
    color: white;
}

.flatpickr-current-month {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: white;
    fill: white;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
}

.flatpickr-weekdays {
    background-color: #f8f9fc;
    border-bottom: 2px solid #e9ecef;
}

.flatpickr-weekday {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.flatpickr-day {
    border-radius: 5px;
    transition: all 0.2s;
}

.flatpickr-day:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.flatpickr-day.selected {
    background: linear-gradient(135deg, #143345 0%, #2dbec6 100%);
    border-color: transparent;
    color: white;
    font-weight: 600;
}

.flatpickr-day.today {
    border-color: var(--primary-color);
    font-weight: 600;
}

.flatpickr-day.today:hover {
    background: var(--primary-color);
    color: white;
}

.flatpickr-day.flatpickr-disabled {
    color: #ccc;
    cursor: not-allowed;
}

.flatpickr-time {
    border-top: 2px solid #e9ecef;
}

.flatpickr-time input {
    font-weight: 500;
}

.flatpickr-time .flatpickr-time-separator {
    color: var(--primary-color);
    font-weight: 600;
}

input.flatpickr-input {
    cursor: pointer;
    border-radius: 5px;
}

input.flatpickr-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 190, 198, 0.25);
}

/* Logo with curved background */
.logo-container {
    position: relative;
    display: inline-block;
    padding: 15px 20px;
    margin-bottom: 1rem;
    overflow: visible;
}

.logo-curved-bg {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 320px;
    height: 180px;
    background-color: white;
    border-radius: 0 50px 50px 0;
    z-index: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-container img {
    position: relative;
    z-index: 1;
    max-width: 150px !important;
}

.sidebar .logo-container {
    padding: 15px 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.sidebar .logo-curved-bg {
    width: 100%;
    max-width: 100%;
    height: 160px;
    border-radius: 0 45px 45px 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
}

.sidebar .logo-container img {
    position: relative;
    z-index: 1;
    max-width: 120px !important;
    margin-left: 20px;
}

@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .flatpickr-calendar {
        width: 100%;
        max-width: 100%;
    }
}

/* Aux Tracker Widget in Sidebar */
.aux-sidebar-widget {
    margin-top: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aux-widget-title {
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aux-widget-title i {
    font-size: 18px;
}

.aux-widget-status {
    text-align: center;
    margin-bottom: 15px;
}

.aux-widget-status .badge {
    font-size: 12px;
    padding: 6px 12px;
}

.aux-widget-actions {
    margin-bottom: 15px;
}

.aux-widget-actions .btn {
    font-size: 12px;
    padding: 8px;
    font-weight: 500;
}

.aux-widget-timer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.aux-timer-item {
    margin-bottom: 12px;
}

.aux-timer-item:last-child {
    margin-bottom: 0;
}

.aux-timer-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aux-timer-label i {
    font-size: 12px;
}

.aux-timer-value {
    color: white;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
}

.aux-timer-total {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 12px;
}

.aux-timer-total .aux-timer-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.aux-timer-total .aux-timer-value {
    font-size: 20px;
    color: #2dbec6;
}

.aux-dropdown-menu .dropdown-header {
    background: linear-gradient(135deg, #2dbec6 0%, #25a8b0 100%);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
}

.aux-dropdown-menu .dropdown-header i {
    margin-right: 6px;
}

.aux-timer-display-dropdown {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 8px 0;
}

.timer-label-dropdown {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.timer-value-dropdown {
    font-size: 32px;
    font-weight: 700;
    color: #2dbec6;
    font-family: 'Courier New', monospace;
    line-height: 1.2;
}

.aux-status-display-dropdown {
    margin: 8px 0;
}

.aux-dropdown-menu .btn {
    width: 100%;
    font-size: 13px;
    padding: 8px;
    font-weight: 500;
}

/* Aux Dropdown in Notifications Card */
.aux-notifications-btn {
    min-width: 120px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
}

.aux-notifications-btn i {
    font-size: 16px;
}

.aux-notifications-btn span {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 14px;
}

.aux-notifications-menu {
    min-width: 280px;
    padding: 0;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.aux-notifications-menu .aux-timer-display-dropdown {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 4px 0;
}

.aux-notifications-menu .timer-value-dropdown {
    font-size: 24px;
}

.aux-notifications-menu .btn {
    transition: all 0.2s ease;
}

.aux-notifications-menu .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aux-notifications-menu .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

