/* PreSkool Dashboard Styles */

:root {
    --primary-color: #3d5ee1;
    --primary-hover: #2e4bc7;
    --sidebar-bg: #ffffff;
    --header-bg: #ffffff;
    --page-bg: #f7f7fa;
    --sidebar-width: 240px;
    --header-height: 60px;
    --text-main: #333333;
    --text-muted: #6c757d;
}

body {
    background-color: var(--page-bg);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

.main-wrapper {
    width: 100%;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--header-bg);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.05);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-left {
    width: var(--sidebar-width);
    display: flex;
    align-items: center;
}

.logo {
    text-decoration: none;
}

/* Sidebar */
.sidebar {
    background-color: var(--sidebar-bg);
    width: var(--sidebar-width);
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    z-index: 1000;
    border-right: 1px solid rgba(0,0,0,.05);
    transition: all 0.4s ease;
}

.sidebar-inner {
    height: 100%;
    overflow-y: auto;
}

.sidebar-menu ul {
    list-style-type: none;
    padding: 10px 0;
    margin: 0;
}

.sidebar-menu li.menu-title {
    color: #333;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    padding: 20px 20px 5px;
    text-transform: uppercase;
}

.sidebar-menu li a {
    color: #555;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar-menu li a i, 
.sidebar-menu li a svg {
    width: 18px;
    height: 18px;
    margin-right: 15px;
    color: var(--text-muted);
}

.sidebar-menu li a:hover {
    color: var(--primary-color);
    background-color: rgba(61, 94, 225, 0.05);
}

.sidebar-menu li.active a {
    color: var(--primary-color);
    background-color: rgba(61, 94, 225, 0.1);
    font-weight: 600;
}

.sidebar-menu li.active a i,
.sidebar-menu li.active a svg {
    color: var(--primary-color);
}

/* Page Wrapper */
.page-wrapper {
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    transition: all 0.4s ease;
    min-height: calc(100vh - var(--header-height));
}

.content {
    padding: 25px;
}

/* Page Header */
.page-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    color: #1f1f1f;
}

/* Cards & Widgets */
.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 0 10px rgba(0,0,0,0.02);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
}

.bg-comman {
    background-color: #fff;
}

.db-info h6 {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 5px;
}

.db-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
}

.db-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(61, 94, 225, 0.1);
}

/* Tables */
.table thead th {
    background-color: #f8f9fa;
    border-bottom: none;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 20px;
}

.table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
}

/* Responsive */
@media only screen and (max-width: 991.98px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.opened {
        margin-left: 0;
        box-shadow: 0 0 15px rgba(0,0,0,0.1);
    }
    .page-wrapper {
        margin-left: 0 !important;
    }
}

