/**
 * Student Portal Custom Styles
 */

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
}

.content {
    min-height: calc(100vh - 56px - 60px); /* Navbar height and footer height */
    padding-bottom: 20px;
}

/* Navbar Styles */
.navbar-brand img {
    filter: brightness(0) invert(1);
}

/* Sidebar Styles */
.sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: #495057;
    border-radius: 0;
    padding: 0.8rem 1rem;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
}

/* Avatar Styles */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 30px;
    height: 30px;
}

.avatar-lg {
    width: 100px;
    height: 100px;
}

/* Button Styles */
.btn-icon {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Form Styles */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 5px;
}

/* Footer Styles */
.footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
}

/* Login Page Styles */
.login-card {
    max-width: 400px;
    margin: 0 auto;
    margin-top: 100px;
}

/* Table Styles */
.table {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.25rem;
}

.alert-heading {
    margin-bottom: 0.5rem;
}

/* Material Item Styles */
.material-item {
    transition: all 0.3s;
}

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

/* Responsive Styles */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 20px;
    }
    
    .content {
        margin-left: 0;
    }
}

/* Print Styles */
@media print {
    .sidebar, .navbar, .footer, .btn {
        display: none !important;
    }
    
    .content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
