/**
 * Baycom International School Management System
 * Custom Stylesheet
 * Primary Colors: Navy Blue (#1a237e), Gold (#ffc107)
 * Secondary Colors: Sky Blue (#87ceeb), Maroon (#800000)
 */

:root {
    --primary-navy: #1a237e;
    --primary-gold: #ffc107;
    --secondary-sky: #87ceeb;
    --secondary-maroon: #800000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #283593 100%);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white) !important;
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--white);
    padding: 3px;
}

.navbar-brand span {
    color: var(--primary-gold);
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-gold) !important;
    border-bottom: 2px solid var(--primary-gold);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #3949ab 50%, var(--secondary-sky) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/1000027237.jpg') center/cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--primary-gold);
}

.hero-motto {
    font-size: 1.8rem;
    color: var(--primary-gold);
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.btn-hero {
    background: var(--primary-gold);
    color: var(--primary-navy);
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #283593 100%);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1rem 1.5rem;
}

.card-header-gold {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #ffb300 100%);
    color: var(--primary-navy);
}

.stat-card {
    background: var(--white);
    border-left: 5px solid var(--primary-gold);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--primary-navy);
    opacity: 0.8;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.stat-card .stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #283593;
    border-color: #283593;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.btn-gold {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-navy);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.btn-outline-gold {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--primary-gold);
    color: var(--primary-navy);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}

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

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #3949ab 100%);
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #283593 100%);
    padding: 2rem;
    text-align: center;
}

.login-header img {
    height: 80px;
    margin-bottom: 1rem;
    background: var(--white);
    border-radius: 50%;
    padding: 5px;
}

.login-header h3 {
    color: var(--white);
    margin: 0;
    font-weight: 700;
}

.login-header p {
    color: var(--primary-gold);
    margin: 0;
    font-style: italic;
}

.login-body {
    padding: 2rem;
}

/* Dashboard Sidebar */
.sidebar {
    background: var(--primary-navy);
    min-height: 100vh;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header img {
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    padding: 5px;
    margin-bottom: 10px;
}

.sidebar-header h5 {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
}

.sidebar-header p {
    color: var(--primary-gold);
    font-size: 0.8rem;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 12px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
}

.sidebar-menu i {
    width: 25px;
    margin-right: 10px;
}

.main-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

/* Tables */
.table {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: var(--primary-navy);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 15px;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(26, 35, 126, 0.05);
}

/* Grade Badges */
.badge-grade {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.badge-a {
    background: #28a745;
    color: white;
}

.badge-b {
    background: #17a2b8;
    color: white;
}

.badge-c {
    background: #ffc107;
    color: #333;
}

.badge-d {
    background: #fd7e14;
    color: white;
}

.badge-f {
    background: #dc3545;
    color: white;
}

/* Report Card Styles */
.report-card {
    background: var(--white);
    border: 3px solid var(--primary-navy);
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.report-header {
    text-align: center;
    border-bottom: 3px solid var(--primary-gold);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.report-header img {
    height: 100px;
    margin-bottom: 15px;
}

.report-header h2 {
    color: var(--primary-navy);
    font-weight: 800;
    margin: 0;
}

.report-header p {
    color: var(--secondary-maroon);
    font-style: italic;
    font-size: 1.1rem;
}

.report-student-info {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.report-student-info table {
    width: 100%;
}

.report-student-info td {
    padding: 5px 10px;
}

.report-student-info td:first-child {
    font-weight: 600;
    color: var(--primary-navy);
    width: 30%;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.report-table th {
    background: var(--primary-navy);
    color: var(--white);
    padding: 12px;
    text-align: center;
    font-weight: 600;
}

.report-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.report-summary {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.report-signatures {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.signature-box {
    text-align: center;
    width: 200px;
}

.signature-line {
    border-top: 2px solid #333;
    margin-top: 50px;
    padding-top: 10px;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Video Cards */
.video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    background: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail i {
    font-size: 4rem;
    color: var(--primary-gold);
}

.video-play-btn {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,193,7,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: var(--primary-gold);
}

.video-play-btn i {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-left: 5px;
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer h5 {
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
}

/* Print Styles for Report Card */
@media print {
    .no-print {
        display: none !important;
    }
    
    .report-card {
        border: 2px solid #000;
        box-shadow: none;
    }
    
    body {
        background: white;
    }
    
    .sidebar, .navbar, .footer {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-motto {
        font-size: 1.3rem;
    }
    
    .report-signatures {
        flex-direction: column;
        gap: 30px;
    }
    
    .signature-box {
        width: 100%;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    border-left-color: var(--primary-navy);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #283593;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

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

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

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

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #283593 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.page-header h2 {
    margin: 0;
    font-weight: 700;
}

.page-header p {
    margin: 0;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 45px;
    border-radius: 50px;
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Profile Card */
.profile-card {
    text-align: center;
    padding: 2rem;
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-gold);
    margin-bottom: 1rem;
}

.profile-card h4 {
    color: var(--primary-navy);
    font-weight: 700;
}

.profile-card p {
    color: #666;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-navy);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: var(--primary-gold);
    border-radius: 50%;
    border: 3px solid var(--primary-navy);
}

/* Admission Form */
.admission-form {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.admission-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.admission-form .form-section:last-child {
    border-bottom: none;
}

.admission-form h4 {
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 15px;
    border-left: 4px solid var(--primary-gold);
}
