/* Custom Styles for Student Coaching Platform */

:root {
    --primary-color: #6893ce;
    --primary-dark: #5578b8;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --accent-color: #89b3e8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Logo Styles */
.navbar-brand img {
    background: white;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.sidebar img {
    background: white;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sidebar img:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Auth Page Logo */
.auth-card img {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 1.5rem;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
    color: white !important;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0 0.3rem;
}

.navbar .nav-link:hover {
    color: white !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, .08);
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Sidebar Toggle Buttons */
.sidebar-toggle-btn {
    position: sticky;
    top: 10px;
    left: auto;
    right: 15px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    padding: 8px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(104, 147, 206, 0.4);
    transition: all 0.3s ease;
    z-index: 101;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.sidebar-toggle-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #4a5f9e);
    transform: translateX(-3px);
    box-shadow: 0 4px 16px rgba(104, 147, 206, 0.6);
}

.sidebar-toggle-btn i {
    font-size: 1rem;
}

.sidebar-show-btn {
    position: fixed;
    top: 70px;
    left: 10px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    z-index: 99;
}

.sidebar-show-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.15);
}

.sidebar-hidden {
    transform: translateX(-100%);
}

/* Main Content Full Width Animation */
#mainContent {
    transition: all 0.3s ease;
}

.sidebar .text-center {
    padding: 1rem;
}

.sidebar .text-primary {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.sidebar hr {
    margin: 0.5rem 1rem;
    border-top: 2px solid rgba(104, 147, 206, 0.1);
}

.sidebar-sticky {
    height: calc(100vh - 56px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: .85rem 1.2rem;
    transition: all 0.3s;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(104, 147, 206, 0.1) 0%, rgba(104, 147, 206, 0.05) 100%);
    border-left-color: var(--primary-color);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(to right, rgba(104, 147, 206, 0.15) 0%, rgba(104, 147, 206, 0.08) 100%);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 100%);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Stats Cards */
.stats-card {
    border-radius: 10px;
    padding: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    height: 25px;
}

.progress-bar {
    font-weight: 600;
}

/* Badge */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 600;
}

/* Feature Icons */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    border-radius: 0.75rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        top: 0;
    }
    
    .sidebar-sticky {
        height: auto;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Authentication Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #6893ce 0%, #5578b8 100%);
}

.auth-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.auth-card .card-body {
    padding: 3rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* Home Page Hero */
.hero-section {
    background: linear-gradient(135deg, rgba(104, 147, 206, 0.05) 0%, rgba(85, 120, 184, 0.05) 100%);
    border-radius: 15px;
    padding: 3rem;
}

.hero-section h1 {
    color: var(--primary-color);
}

.hero-section .lead {
    color: #555;
    font-size: 1.1rem;
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .footer {
        display: none !important;
    }
}

