/* ============================================================================
   Training Schedule Manager - Unified Dashboard
   Custom CSS Styles - Phase 1
   ============================================================================ */

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Body and Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}

main {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* Navigation Bar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.dropdown-menu {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dropdown-item {
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Cards */
.card {
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

/* Alerts */
.alert {
    border-radius: 8px;
    border-left-width: 4px;
}

/* Icons */
.fa-3x {
    font-size: 3rem;
}

.fa-5x {
    font-size: 5rem;
}

/* Typography */
.display-4 {
    font-weight: 600;
}

.lead {
    font-size: 1.15rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Spacing Utilities */
.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Card Border Colors */
.border-primary {
    border-width: 2px;
}

.border-success {
    border-width: 2px;
}

.border-info {
    border-width: 2px;
}

.border-warning {
    border-width: 2px;
}

.border-danger {
    border-width: 2px;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Transition Effects */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Footer Styling */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.footer small {
    color: #6c757d;
}
