/* style.css */
/* ===== GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fc;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== LAYOUT STYLES ===== */
.custom-navbar {
    background: linear-gradient(135deg, var(--primary-color), #2e59d9) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-footer {
    background-color: var(--dark-color);
    color: white;
    margin-top: auto;
}

/* ===== COMPONENT STYLES ===== */
.welcome-section {
    padding: 2rem 0;
}

.login-card, 
.submission-form-card, 
.submission-report-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.student-info-card, 
.quick-actions-card, 
.submissions-card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2e59d9;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #17a673;
    border-color: #17a673;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #d52a1b;
    border-color: #d52a1b;
    transform: translateY(-2px);
}

/* ===== ALERT STYLES ===== */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* ===== TABLE STYLES ===== */
.table th {
    border-top: none;
    font-weight: 700;
    color: var(--dark-color);
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* ===== SPECIAL CARD STYLES ===== */
.submission-guidelines-card {
    border-left: 4px solid var(--warning-color);
}

.student-info-alert .alert {
    border-left: 4px solid var(--info-color);
}

.report-details .bg-light {
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

.report-details .bg-light:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* ===== FORM STYLES ===== */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

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

/* ===== BADGE STYLES ===== */
.badge {
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

.badge.bg-warning {
    color: #000 !important;
}

/* ===== MEMBER ROW STYLES ===== */
.member-row {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.member-row:hover {
    background-color: #e9ecef;
}

.remove-member:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar, 
    .custom-footer, 
    .btn {
        display: none !important;
    }

    .submission-report-card {
        border: none !important;
        box-shadow: none !important;
    }
    
    body {
        background-color: white !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* ===== ANIMATION STYLES ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* ===== UTILITY STYLES ===== */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

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

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.rounded-xl {
    border-radius: 1rem !important;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e59d9;
}