/* Custom styles for the dive center app */

/* Fix for outline button contrast issues */
.btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-outline-info {
    color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    background-color: transparent !important;
}

.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active {
    color: #fff !important;
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

/* Ensure dropdown toggles in buttons work properly */
.btn.dropdown-toggle {
    color: inherit !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn {
    border-radius: 6px;
}

.btn-group-sm .btn {
    border-radius: 4px;
}

.progress {
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.alert {
    border: none;
    border-radius: 10px;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.badge {
    font-size: 0.75em;
}

/* Login page specific styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Dashboard statistics cards */
.dashboard-stat-card .card-body {
    padding: 1.5rem;
}

.dashboard-stat-card h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* TTU progress indicators */
.ttu-progress-item {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
}

.ttu-progress-item.overdue {
    border-left-color: #dc3545;
}

/* Certification status indicators */
.cert-status-active {
    color: #28a745;
}

.cert-status-expired {
    color: #dc3545;
}

.cert-status-expiring {
    color: #ffc107;
}

/* Form improvements */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5a6fd8;
    border-color: #5a6fd8;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    
    .btn-toolbar {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        border: none;
    }
}

/* Notification bell animation */
.nav-link .notification-bell-unread,
.fas.notification-bell-unread,
i.notification-bell-unread {
    color: #ffc107 !important;
    animation: bell-shake 2s ease-in-out infinite;
}

@keyframes bell-shake {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}

/* Alternative: pulsing glow effect */
.notification-bell-unread.pulse {
    animation: bell-pulse 2s ease-in-out infinite;
}

@keyframes bell-pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 5px #ffc107;
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 15px #ffc107, 0 0 25px #ffc107;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .alert {
        display: none;
    }
    
    .card {
        border: 1px solid #dee2e6;
        box-shadow: none;
    }
}