/* CrewSchej Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

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

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    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);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-sm {
    font-size: 0.875rem;
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
}

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

.availability-yes {
    background-color: var(--success-color);
    color: white;
}

.availability-no {
    background-color: var(--danger-color);
    color: white;
}

.availability-some {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.availability-maybe {
    background-color: var(--info-color);
    color: var(--dark-color);
}

.role-assignment {
    background-color: var(--light-color);
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin: 0.25rem 0;
}

.role-assignment.claimed {
    border-left: 4px solid var(--success-color);
}

.role-assignment.assigned {
    border-left: 4px solid var(--primary-color);
}

.proficiency-bar {
    height: 8px;
    background-color: var(--light-color);
    border-radius: 4px;
    overflow: hidden;
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--danger-color) 0%, var(--warning-color) 50%, var(--success-color) 100%);
    transition: width 0.3s ease;
}

.event-card {
    border-left: 4px solid var(--primary-color);
}

.event-card.tentative {
    border-left-color: var(--warning-color);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.login-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.login-header h1 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.login-body {
    padding: 0 2rem 2rem;
}

.form-floating {
    margin-bottom: 1rem;
}

.dashboard-stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--light-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--light-color);
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.availability-day {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid var(--light-color);
    transition: all 0.2s ease;
}

.availability-day:hover {
    border-color: var(--primary-color);
}

.availability-day.selected {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.role-card {
    border: 1px solid var(--light-color);
    border-radius: 0.5rem;
    padding: 1rem;
    background: white;
}

.role-card.filled {
    border-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.05);
}

.role-card.partial {
    border-color: var(--warning-color);
    background-color: rgba(255, 193, 7, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.notes-section {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
}

.internal-notes {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .dashboard-stats {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .availability-grid {
        grid-template-columns: 1fr;
    }
    
    .role-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, .card-header .btn {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
    }
}
