/* Tunga Finance LMS Custom Styles */

:root {
    --primary-color: #008744; /* Tunga Green */
    --gold-color: #c5a059;    /* Tunga Gold */
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

/* Sidebar Styling */
#sidebar {
    transition: all 0.3s;
    height: 100vh;
}

#content {
    transition: all 0.3s;
    width: 100%;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

.card-title {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--dark-color);
}

/* Dashboard Summary Cards */
.summary-card {
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.summary-card i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.2;
}

.summary-card .title {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.summary-card .value {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Status Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: 0.375rem;
}

/* Forms */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

/* Table Styling */
.table thead th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 0.75rem;
}

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

/* Login Page Styling */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #007038 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    background: white;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .border-md-end {
        border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
}

@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        left: -260px;
        z-index: 1050;
    }
    #sidebar.active {
        left: 0;
    }
    #content.active {
        margin-left: 0;
    }
    .summary-card .value {
        font-size: 1.5rem;
    }
    .navbar-brand img {
        height: 40px;
    }
}

/* Sidebar Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1045;
    top: 0;
    left: 0;
}

.sidebar-overlay.active {
    display: block;
}
