/* Custom Styles for School-StuCon Platform */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-section h1 {
    color: white;
}

/* Hero Slider Styles */
.hero-slide {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.carousel-item {
    height: 300px;
    transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    .hero-slide {
        height: 250px;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .hero-slide h1 {
        font-size: 1.8rem;
    }
    
    .hero-slide .lead {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        height: 200px;
    }
    
    .carousel-item {
        height: 200px;
    }
    
    .hero-slide h1 {
        font-size: 1.5rem;
    }
    
    .hero-slide .lead {
        font-size: 0.8rem;
    }
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Admin Panel Styles */
.sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
    overflow-y: auto;
}

.main-content {
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    margin: 5px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 120px;
    display: flex;
    align-items: center;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.stats-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 5px 0 0 0;
}

.stats-card i {
    opacity: 0.3;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: none;
    margin-bottom: 20px;
}

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

.dashboard-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        transition: left 0.3s ease;
        z-index: 1050;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
    }
    
    .stats-card {
        height: auto;
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .stats-card {
        padding: 15px;
    }
    
    .stats-card h3 {
        font-size: 1.8rem;
    }
    
    .dashboard-card {
        padding: 20px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1060;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Table Improvements */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: var(--light-bg);
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
    padding: 15px;
}

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

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Badge Improvements */
.badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Button Improvements */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

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

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Table Styles */
.table th {
    background-color: var(--light-bg);
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

/* Modal Styles */
.modal-header {
    background-color: var(--secondary-color);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* School Search Styles */
.school-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Search Form Enhancements */
#school-search .card {
    border-radius: 15px;
    overflow: hidden;
}

#school-search .form-label {
    color: var(--primary-color);
    font-weight: 600;
}

#school-search .form-control,
#school-search .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

#school-search .form-control:focus,
#school-search .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Search Results */
.school-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.school-card .badge {
    font-size: 0.75rem;
}

/* Loading Spinner */
#loadingSpinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* School Details Page */
.facilities-content,
.fee-structure-content {
    line-height: 1.6;
    white-space: pre-line;
}

.contact-info p {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.contact-info p:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 50vh;
    }
    
    #school-search .row.g-3 > div {
        margin-bottom: 1rem;
    }
    
    .school-card {
        margin-bottom: 1rem;
    }
}

/* Print styles for school details */
@media print {
    .navbar,
    footer,
    .card-header,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .card-body {
        padding: 0 !important;
    }
}

/* Application Tracking Styles */
.application-tracker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.application-status-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.application-status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.status-timeline {
    position: relative;
    padding: 20px 0;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #28a745, #ffc107, #dc3545);
}

.timeline-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #dee2e6;
    z-index: 2;
}

.timeline-step.completed::before {
    border-color: #28a745;
    background: #28a745;
}

.timeline-step.active::before {
    border-color: #ffc107;
    background: #ffc107;
}

.timeline-step.pending::before {
    border-color: #6c757d;
    background: #6c757d;
}

.application-progress {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.progress-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #dee2e6;
    z-index: 1;
}

.progress-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-size: 12px;
}

.progress-dot.completed {
    border-color: #28a745;
    background: #28a745;
    color: white;
}

.progress-dot.active {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.notification-badge {
    position: relative;
    display: inline-block;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.application-alert {
    border-left: 4px solid #007bff;
    background: #f8f9ff;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.application-alert.success {
    border-left-color: #28a745;
    background: #f8fff9;
}

.application-alert.warning {
    border-left-color: #ffc107;
    background: #fffef8;
}

.application-alert.danger {
    border-left-color: #dc3545;
    background: #fff8f8;
}

.quick-actions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.quick-actions .btn {
    margin: 5px;
    border-radius: 20px;
    padding: 8px 20px;
}

.application-summary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.summary-item {
    text-align: center;
    padding: 15px;
}

.summary-item h4 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.summary-item p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive adjustments for application tracking */
@media (max-width: 768px) {
    .application-status-card {
        padding: 15px;
    }
    
    .timeline-step {
        padding-left: 40px;
    }
    
    .progress-indicator {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-indicator::before {
        display: none;
    }
    
    .application-summary {
        padding: 15px;
    }
}

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

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

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 25px;
    width: 2px;
    height: calc(100% - 10px);
    background-color: #dee2e6;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.timeline-marker.completed {
    background-color: #28a745;
    color: white;
}

.timeline-marker.active {
    background-color: #007bff;
    color: white;
    transform: scale(1.2);
}

.timeline-content {
    margin-left: 15px;
}

/* Job Card Styles */
.job-card {
    transition: transform 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.job-type-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.skill-badge {
    font-size: 0.75rem;
    margin: 0.2rem;
    padding: 0.3rem 0.6rem;
}