/* Main Styles for Kindergarten Management System */

/* General Styles */
body {
    padding-top: 56px;
    background-color: #f8f9fa;
}

.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    right: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
}

.sidebar .nav-link.active {
    color: #007bff;
}

.sidebar .nav-link:hover {
    color: #0056b3;
}

.sidebar .nav-link i {
    margin-left: 0.5rem;
    width: 20px;
    text-align: center;
}

main {
    padding-top: 1.5rem;
}

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

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Dashboard Styles */
.dashboard-stat {
    padding: 1.5rem;
    border-radius: 0.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.dashboard-stat.bg-primary {
    background-color: #007bff !important;
}

.dashboard-stat.bg-success {
    background-color: #28a745 !important;
}

.dashboard-stat.bg-warning {
    background-color: #ffc107 !important;
}

.dashboard-stat.bg-danger {
    background-color: #dc3545 !important;
}

.dashboard-stat .stat-icon {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    left: 1rem;
    top: 1rem;
}

.dashboard-stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-stat .stat-label {
    font-size: 1rem;
    text-transform: uppercase;
}

/* Table Styles */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
}

/* Form Styles */
.form-label {
    font-weight: 500;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button Styles */
.btn {
    border-radius: 0.25rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* Currency Symbol */
.currency-symbol {
    display: inline-block;
    margin-left: 0.25rem;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
}

/* RTL Specific Styles */
[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
}

/* Sidebar Dropdown Submenu Styles */
.sidebar-dropdown-submenu {
    position: relative;
}

.sidebar-dropdown-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-dropdown-submenu-menu {
    display: none;
    padding-right: 1.5rem;
    list-style: none;
}

.sidebar-dropdown-submenu.active .sidebar-dropdown-submenu-menu {
    display: block;
}

.sidebar-dropdown-subitem {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar-dropdown-subitem:hover {
    color: #007bff;
    text-decoration: none;
}

.sidebar-dropdown-subitem.active {
    color: #007bff;
    font-weight: bold;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ms-sm-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-sm-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Print Styles */
@media print {
    .sidebar {
        display: none !important;
    }
    
    .navbar {
        display: none !important;
    }
    
    .btn-print {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    main {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Responsive Styles */
@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
}
