/* Import Nunito Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&display=swap');

/* Main Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Nunito', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    flex: 1;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

footer {
    margin-top: auto;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .card-header h4, .card-header h5 {
        font-size: 1.1rem;
    }
}

/* Card Styling */
.card {
    border: none;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Dashboard cards */
.dashboard-card .card-header {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

.dashboard-card .card-header i {
    opacity: 0.8;
}

.card-header {
    border-bottom: none;
}

.card.shadow {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.12) !important;
}

/* Navbar Customization */
.navbar {
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-dark {
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Form Styling */
.form-control {
    border-radius: 10px;
    padding: 0.6rem 1rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

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

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Notification Badge */
.position-relative .badge {
    font-size: 0.65rem;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
    border-radius: 4px;
}

.badge.rounded-pill {
    padding-left: 0.8em;
    padding-right: 0.8em;
}

.badge i {
    font-size: 0.85em;
}

/* Profile Image */
.rounded-circle {
    object-fit: cover;
}

/* Course Cards */
.card .bi {
    color: #0d6efd;
}

/* Course detail styling */
.course-detail-item {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
}

.course-detail-item i {
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.course-detail-item strong {
    margin-right: 0.5rem;
    font-weight: 600;
}

/* Notification List */
.list-group-item-action:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: #0d6efd;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table styling */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid rgba(13, 110, 253, 0.2);
}

.table th i {
    opacity: 0.7;
}

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

/* Button Styling */
.btn {
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-group .btn {
    margin-right: 2px;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, #084298);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary {
    border: 2px solid #0d6efd;
    color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

/* Form Validation */
.text-danger {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Login and Register Cards */
@media (min-width: 768px) {
    .card.shadow {
        border-radius: 1.5rem;
        overflow: hidden;
    }
    
    .auth-card {
        max-width: 500px;
        margin: 2rem auto;
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15) !important;
    }
    
    .auth-card .card-header {
        background: linear-gradient(135deg, #0d6efd, #0a58ca);
        color: white;
        padding: 1.5rem;
        text-align: center;
    }
    
    .auth-card .card-body {
        padding: 2rem;
    }
}

/* Dashboard Cards */
.dashboard-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: none;
    font-weight: 700;
    color: #495057;
    padding: 1.2rem 1.5rem;
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.12) !important;
}

/* Course Detail */
.course-detail-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.course-detail-header h2 {
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.course-detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.course-detail-info .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Notification Styling */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.unread-notification {
    animation: pulse 2s infinite;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Table Styling */
.table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.table thead {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.table thead th {
    border-bottom: none;
    font-weight: 700;
    color: #495057;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}

/* Page Transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
