/* Custom Styles for Learning Platform */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar Customization */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Sidebar */
.nav-link.active {
    border-radius: 5px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Session Card */
.session-card {
    height: 100%;
}

.session-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Profile Picture */
.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.profile-picture-small {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

/* Dashboard Stats Cards */
.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}

.stat-card.danger {
    border-left-color: var(--danger-color);
}

/* Rating Stars */
.rating-stars {
    color: #ffc107;
}

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
}

/* Table */
.table {
    background-color: #fff;
}

.table thead {
    background-color: #f8f9fa;
}

/* Badge */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

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

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

/* Feature Box */
.feature-box {
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.feature-box:hover {
    background-color: #f8f9fa;
    border-radius: 10px;
}

.feature-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Testimonial */
.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Community Group Card */
.group-card {
    border-left: 4px solid var(--primary-color);
}

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

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Utility Classes */
.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;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .profile-picture {
        width: 100px;
        height: 100px;
    }
}

/* Auth Page */
.auth-container {
    max-width: 450px;
    margin: 50px auto;
}

.auth-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
}

.auth-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
}

/* Wallet */
.wallet-balance {
    font-size: 3rem;
    font-weight: bold;
    color: var(--success-color);
}

/* Transaction History */
.transaction-item {
    border-left: 3px solid #dee2e6;
    padding-left: 15px;
    margin-bottom: 15px;
}

.transaction-item.credit {
    border-left-color: var(--success-color);
}

.transaction-item.debit {
    border-left-color: var(--danger-color);
}

/* Schedule Calendar */
.calendar-day {
    min-height: 100px;
    border: 1px solid #dee2e6;
    padding: 10px;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

/* Session Status Badges */
.status-available {
    background-color: var(--success-color);
}

.status-booked {
    background-color: var(--primary-color);
}

.status-completed {
    background-color: #6c757d;
}

.status-cancelled {
    background-color: var(--danger-color);
}

/* OTP Input */
.otp-input {
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    margin: 0 5px;
    border: 2px solid #dee2e6;
    border-radius: 5px;
}

.otp-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-upload-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    cursor: pointer;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    display: inline-block;
}

.file-upload-label:hover {
    background-color: #0b5ed7;
}

/* Notification Badge */
.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Verification Badge */
.verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--success-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .no-print {
        display: none !important;
    }
}
