/* 
 * Brain of Code Summer Training Registration Portal
 * Custom Application Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d6efd;
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #023e8a 100%);
    --secondary-color: #212529;
    --accent-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --body-bg: #f8f9fa;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --border-radius: 12px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--body-bg);
    color: #333;
    overflow-x: hidden;
}

/* Public Portal Styles */
.portal-navbar {
    background: var(--primary-gradient);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.portal-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.registration-card {
    background: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.card-header-gradient {
    background: var(--primary-gradient);
    color: white;
    padding: 24px;
    border-bottom: none;
}

.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Wizard / Section Styling */
.form-section-title {
    position: relative;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.form-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #0d6efd;
}

/* Admin Sidebar Layout */
.admin-wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #1e293b;
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #0f172a;
    text-align: center;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 1.1em;
    display: block;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

#sidebar ul li a:hover {
    color: #fff;
    background: #334155;
    padding-left: 25px;
}

#sidebar ul li.active > a {
    color: #fff;
    background: var(--primary-color);
}

#sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
}

#content {
    width: 100%;
    padding: 25px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Dashboard Stat Cards */
.stat-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.2;
}

/* Badge Status Styles */
.badge-pending {
    background-color: #ffeefe;
    color: #d63384;
}

.badge-approved {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-rejected {
    background-color: #f8d7da;
    color: #842029;
}

.badge-hold {
    background-color: #fff3cd;
    color: #664d03;
}

/* Student Profile Page Design */
.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-row {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
}

.detail-value {
    color: #212529;
}

/* Receipt Print layout */
@media print {
    body * {
        visibility: hidden;
    }
    #receipt-container, #receipt-container * {
        visibility: visible;
    }
    #receipt-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none !important;
    }
}

.receipt-card {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    background: #fff;
}

.receipt-logo {
    max-width: 120px;
}

/* Login Panel Layout */
.login-bg {
    background: linear-gradient(rgba(13, 110, 253, 0.8), rgba(2, 62, 138, 0.9)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?q=80&w=1470&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
}

.login-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
