/* ============================================================
   EduConnect - Main Styles
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
    padding: 12px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 8px 16px;
    color: #495057;
    transition: color 0.2s;
}

.navbar .nav-link:hover {
    color: #0d6efd;
}

.navbar .nav-link.active {
    color: #0d6efd;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 80px 0;
    margin-bottom: 0;
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-body {
    padding: 1.5rem;
}

/* ============================================================
   Statistics
   ============================================================ */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 24px;
}

.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    color: white;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.2s;
}

footer a:hover {
    color: #fff !important;
}

.social-links a {
    transition: transform 0.2s;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* ============================================================
   Material Cards
   ============================================================ */
.material-card .card-title {
    font-weight: 600;
    font-size: 1rem;
}

.material-card .price {
    font-weight: 700;
    color: #198754;
}

/* ============================================================
   Forms
   ============================================================ */
.form-control {
    border-radius: 8px;
    padding: 10px 14px;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-label {
    font-weight: 500;
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
    padding: 5px 10px;
    font-weight: 500;
    border-radius: 6px;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    border-radius: 8px;
    border: none;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination .page-link {
    border: none;
    color: #0d6efd;
    padding: 8px 16px;
    border-radius: 6px;
}

.pagination .page-link:hover {
    background: #e9ecef;
}

.pagination .page-item.active .page-link {
    background: #0d6efd;
    color: white;
}

/* ============================================================
   Dashboard
   ============================================================ */
.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dashboard-card .card-icon {
    font-size: 2rem;
    opacity: 0.5;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }
}

/* ============================================================
   Utilities
   ============================================================ */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-shadow {
    transition: box-shadow 0.2s;
}

.hover-shadow:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.rounded-12 {
    border-radius: 12px;
}