:root {
    --primary-color: #2E7D32; /* Green 800 */
    --secondary-color: #4CAF50; /* Green 500 */
    --accent-color: #81C784; /* Green 300 */
    --bg-color: #f0f2f5;
    --text-color: #333;
    --white: #ffffff;
}

body {
    background-color: var(--bg-color);
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    border-radius: 0 0 50px 50px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    background: var(--white);
}

.card-custom:hover {
    transform: translateY(-5px);
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.btn-primary-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.school-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    margin-top: 50px;
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Helper Classes */
.transition {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* Mobile Bottom Navigation */
.bottom-navbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
    padding: 10px 0;
    justify-content: space-around;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding-bottom: env(safe-area-inset-bottom, 10px); /* For iPhone X+ */
}

.bottom-nav-item {
    text-align: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.bottom-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.bottom-nav-item:hover {
    color: var(--secondary-color);
}

/* Mobile Specific Tweaks */
@media (max-width: 768px) {
    .bottom-navbar {
        display: flex;
    }
    
    /* Hide top navbar toggler and collapse on mobile */
    .navbar-toggler, .navbar-collapse {
        display: none !important;
    }
    
    /* Adjust body padding */
    body {
        padding-bottom: 80px;
    }
    
    /* Center Navbar Brand on Mobile */
    .navbar-brand {
        margin: 0 auto;
        font-size: 1.1rem;
    }
    
    /* Adjust Hero Section for Mobile */
    .hero-section {
        padding: 50px 0;
        border-radius: 0 0 30px 30px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    /* Adjust Cards for Mobile */
    .card-custom {
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    /* Adjust text sizes */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
}

@media print {
    .bottom-navbar, .navbar, .btn {
        display: none !important;
    }
}
