/* Student Corner Styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --school-color: #4facfe;
    --college-color: #43e97b;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Floating Animation */
.floating-books {
    position: relative;
    height: 400px;
}

.floating-books i {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.7);
}

.book-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.book-2 {
    top: 60%;
    right: 30%;
    animation-delay: 1.5s;
}

.book-3 {
    bottom: 30%;
    left: 40%;
    animation-delay: 3s;
}

.book-4 {
    top: 10%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Notifications Section */
.notifications-section {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 56px;
    z-index: 100;
}

.notifications-slider {
    overflow: hidden;
    height: 60px;
    position: relative;
}

.notification-slide {
    padding: 15px 20px;
    border-left: 4px solid;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease;
}

.notification-slide.info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.notification-slide.success {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.notification-slide.warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #ef6c00;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.school-card:hover {
    border-color: var(--school-color);
}

.college-card:hover {
    border-color: var(--college-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.school-card .card-icon {
    background: linear-gradient(135deg, var(--school-color), #0093E9);
    color: white;
}

.college-card .card-icon {
    background: linear-gradient(135deg, var(--college-color), #00d2ff);
    color: white;
}

.category-card h4 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.category-card p {
    color: #666;
    margin-bottom: 25px;
}

/* Material Cards */
.material-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.material-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    text-align: center;
    position: relative;
}

.material-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.5rem;
}

.material-type {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
}

.material-body {
    padding: 20px;
}

.material-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.material-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.material-meta {
    margin-bottom: 15px;
}

.material-footer {
    padding: 0 20px 20px;
}

.material-stats {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* Request Section */
.request-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.request-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Page Header */
.page-header {
    border-bottom: 1px solid #e9ecef;
}

/* Filters Section */
.filters-section {
    border-bottom: 1px solid #e9ecef;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 24px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--college-color), #00d2ff);
    border: none;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .floating-books {
        height: 200px;
    }
    
    .floating-books i {
        font-size: 2rem;
    }
    
    .category-card {
        margin-bottom: 20px;
    }
    
    .request-card {
        padding: 30px 20px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section Spacing */
.student-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: #2c3e50 !important;
    color: #ecf0f1;
}

.footer h5 {
    color: #fff;
    margin-bottom: 15px;
}

.footer p {
    margin-bottom: 5px;
    color: #bdc3c7;
}
