/* Aral - Grades Frequency Monitoring and Reporting System Custom Styles */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-top: 56px; /* Add padding for fixed navbar */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Navbar Styles */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    max-width: 80%;
    white-space: normal;
    line-height: 1.2;
    font-size: 1rem;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 56px; /* Position below navbar */
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    height: calc(100vh - 56px); /* Adjust height to account for navbar */
    transition: all 0.3s ease-in-out;
    background-color: #f8f9fa;
    width: 250px;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link.active {
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.sidebar .nav-link:hover {
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
}

/* Main Content Area */
main {
    padding-top: 1rem;
    min-height: calc(100vh - 56px);
    margin-left: 250px; /* Match sidebar width */
    transition: margin-left 0.3s ease-in-out;
}

/* Sidebar Toggle */
.sidebar.toggled {
    width: 0 !important;
    overflow: hidden;
}

body.sidebar-toggled .sidebar {
    width: 0;
    overflow: hidden;
}

body.sidebar-toggled main {
    margin-left: 0;
}

/* Dashboard Cards */
.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Form Styles */
.form-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Submission Status Badges */
.badge {
    padding: 0.5em 0.75em;
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-top: 5rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-weight: 700;
    color: #0d6efd;
}

.login-logo p {
    color: #6c757d;
}

/* Profile Page */
.profile-header {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Table Styles */
.table-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

/* Report Container */
.report-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        width: 0;
    }
    
    main {
        margin-left: 0;
    }
    
    .sidebar.toggled {
        width: 250px !important;
    }
    
    body.sidebar-toggled main {
        margin-left: 0;
    }
    
    .navbar-brand {
        max-width: 60%;
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .login-container {
        margin-top: 2rem;
        max-width: 90%;
    }
    
    .navbar-brand {
        max-width: 50%;
        font-size: 0.85rem;
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    main {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Custom alerts */
.alert-custom {
    border-left: 4px solid;
}

.alert-custom.alert-success {
    border-left-color: #198754;
}

.alert-custom.alert-danger {
    border-left-color: #dc3545;
}

.alert-custom.alert-warning {
    border-left-color: #ffc107;
}

.alert-custom.alert-info {
    border-left-color: #0dcaf0;
}

/* Grade frequency form */
.grade-frequency-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Comments section */
.comments-section {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 1rem;
    border-radius: 0.25rem;
}

/* Export buttons */
.export-buttons {
    margin-bottom: 1rem;
}

/* View mode switch */
.view-switch {
    float: right;
}

/* Card Icons */
.card-icon {
    font-size: 3rem;
    color: #0d6efd;
}

/* Action buttons */
.action-buttons .btn {
    margin-right: 0.25rem;
}

/* Dashboard stats */
.stats-card {
    border-left: 4px solid;
    transition: transform 0.2s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card.primary {
    border-left-color: #0d6efd;
}

.stats-card.success {
    border-left-color: #198754;
}

.stats-card.warning {
    border-left-color: #ffc107;
}

.stats-card.danger {
    border-left-color: #dc3545;
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* Quick action cards */
.quick-action-card {
    text-align: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.quick-action-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

.quick-action-card .card-icon {
    margin-bottom: 1rem;
} 

/* SDS Dashboard Specific Styles */
.dashboard-sds .dashboard-header {
    background-color: #f8f9fc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.dashboard-sds .kpi-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-sds .kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}

.dashboard-sds .kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.dashboard-sds .kpi-icon i {
    font-size: 1.5rem;
}

.dashboard-sds .card-header {
    background-color: transparent !important;
    border-bottom: none !important;
}

.dashboard-sds .list-group-item-action {
    transition: background-color 0.2s ease;
}

.dashboard-sds .list-group-item-action:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.dashboard-sds .performance-section .progress {
    background-color: rgba(0, 123, 255, 0.1);
}

.dashboard-sds .top-performers-section .badge {
    font-weight: 500;
}

.dashboard-sds .trend-indicator i {
    font-size: 1rem;
}

.dashboard-sds .alerts-container .alert {
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.dashboard-sds .alerts-container .alert i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .dashboard-sds .dashboard-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .dashboard-sds .dashboard-actions {
        width: 100%;
        margin-top: 1rem;
    }

    .dashboard-sds .dashboard-actions .btn-group {
        width: 100%;
    }

    .dashboard-sds .dashboard-actions .btn-group .btn {
        width: 50%;
    }
} 