html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Custom Styles for Student Portal */
:root {
    --primary-red: #dc2626;
    --primary-red-dark: #b91c1c;
    --primary-red-light: #ef4444;
    --secondary-red: #fef2f2;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
    font-family: 'Cairo', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--secondary-red) 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

.navbar {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%) !important;
    box-shadow: var(--shadow);
    border: none !important;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #002e5d 0%, #2b5c83 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
}

.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    background: var(--white);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.hero-section {
    background: linear-gradient(135deg, #002e5d 0%, #2b5c83 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 2rem 2rem;
}

.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.alert {
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.alert-danger {
    background: linear-gradient(135deg, #002e5d 0%, #2b5c83 100%);
    color: var(--white);
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    box-shadow: var(--shadow);
}

.logo-placeholder i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

/* Home Page Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

.step-item {
    padding: 2rem 1rem;
}

.step-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item {
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    margin: 0.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.stat-item h3 {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-item i {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Success Page Animations */
.success-icon {
    animation: bounceIn 1s ease-in-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Application Details Styles */
.status-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.info-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateX(-5px);
}

.info-item label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section {
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -2rem;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-red), transparent);
    border-radius: 2px;
}

/* Form Styles */
.section-header {
    position: relative;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.form-label {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-label i {
    color: var(--primary-red) !important;
}

.section-header h4 {
    color: var(--primary-red) !important;
    font-weight: 800;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.section-header hr {
    border-color: var(--primary-red) !important;
    opacity: 0.5;
}

.card-header h2 {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-header p {
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

.text-danger {
    color: var(--primary-red) !important;
    font-weight: 600;
}

.form-check-label {
    color: var(--text-dark) !important;
    font-weight: 500;
}

.form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.form-check-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.15);
}

/* Additional Button Styling */
.btn-outline-secondary {
    color: var(--text-dark) !important;
    border-color: var(--text-light);
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background-color: var(--text-dark) !important;
    border-color: var(--text-dark);
    color: var(--white) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
    
    .section::before {
        display: none;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem !important;
    }
}

/* Button Improvements */
.btn-light {
    background: var(--white) !important;
    color: var(--primary-red) !important;
    border: 2px solid var(--white);
    font-weight: 700;
    text-shadow: none;
    box-shadow: var(--shadow);
}

.btn-light:hover {
    background: var(--primary-red-light) !important;
    color: var(--white) !important;
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    color: var(--white) !important;
    border: 2px solid var(--white);
    font-weight: 700;
    text-shadow: none;
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white) !important;
    color: var(--primary-red) !important;
    border-color: var(--white);
    transform: translateY(-2px);
}

