/* Custom Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar {
    position: fixed;
    top: 56px; /* Height of navbar */
    left: 0;
    bottom: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
}

.nav-link:hover, .nav-link.active {
    background-color: #e9ecef;
    color: #0d6efd;
}

.nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

main {
    margin-top: 56px;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #6c757d;
}

.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Dashboard cards */
.card.bg-primary { background: linear-gradient(45deg, #0d6efd, #0b5ed7); }
.card.bg-success { background: linear-gradient(45deg, #198754, #157347); }
.card.bg-warning { background: linear-gradient(45deg, #ffc107, #e0a800); }
.card.bg-danger { background: linear-gradient(45deg, #dc3545, #bb2d3b); }
.card.bg-info { background: linear-gradient(45deg, #0dcaf0, #0aa2c0); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    main {
        margin-top: 0;
    }
}

/* Print styles */
@media print {
    .navbar, .sidebar, .btn {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
    
    main {
        margin-top: 0 !important;
        width: 100% !important;
    }
}

/* Task priority indicators */
.priority-low { border-left: 4px solid #0dcaf0; }
.priority-medium { border-left: 4px solid #0d6efd; }
.priority-high { border-left: 4px solid #ffc107; }
.priority-urgent { border-left: 4px solid #dc3545; }

/* Status badges */
.badge.bg-warning { background-color: #ffc107 !important; }
.badge.bg-primary { background-color: #0d6efd !important; }
.badge.bg-success { background-color: #198754 !important; }
.badge.bg-secondary { background-color: #6c757d !important; }
.badge.bg-danger { background-color: #dc3545 !important; }








/* Footer Styles */
.footer {
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Print styles adjustment */
@media print {
    .footer {
        display: none !important;
    }
}

/* Active menu item indicator */
.nav-item.active-item {
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 0.375rem;
}

/* Password strength meter */
.password-strength .progress {
    width: 100%;
}

.strength-text {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
}

/* Invalid form feedback */
.invalid-feedback {
    display: block;
}

/* Notification badge */
.badge-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
    padding: 2px 5px;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer .text-end {
        text-align: left !important;
        margin-top: 10px;
    }
}




/* Ensure form buttons are visible */
.btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any hiding styles */
[style*="display: none"] .btn,
[style*="visibility: hidden"] .btn,
[style*="opacity: 0"] .btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Make sure form action area is visible */
.mt-3 {
    margin-top: 1rem !important;
}