/* GIMDASH Custom Styles */

/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
}

body {
    font-family: 'Inter', sans-serif;
    padding-bottom: 70px; /* Space for fixed footer */
    padding-top: 60px; /* Space for fixed header */
    background-color: #f8f9fa;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.header-logo-center {
    justify-content: center;
}

.header-title-center {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-icon {
    color: var(--dark-color);
    font-size: 1.2rem;
    padding: 10px;
    position: relative;
    z-index: 1;
}

/* Footer Navigation */
.footer-bar-6 {
    background-color: #ffffff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 98;
    height: 60px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-bar-6 a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 5px 0;
}

.footer-bar-6 a i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.footer-bar-6 a.active {
    color: var(--primary-color);
}

.footer-bar-6 .circle-nav {
    background-color: var(--primary-color);
    border-radius: 50%;
    height: 50px;
    width: 50px;
    margin-top: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.footer-bar-6 .circle-nav i, .footer-bar-6 .circle-nav span {
    color: #fff;
}

/* Main Menu */
.menu {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    z-index: 100;
    overflow-y: auto;
    height: 100%;
    transition: all 300ms ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.menu-box-left {
    left: -280px;
    width: 280px;
    border-right: solid 1px rgba(0,0,0,0.05);
}

.menu-active-left {
    left: 0 !important;
}

.menu-header {
    padding: 20px 15px;
    min-height: 100px;
    position: relative;
}

.menu-header .close-menu {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.list-custom-small a {
    padding: 12px 15px;
    border-bottom: solid 1px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    min-height: 52px; /* Set fixed height for consistency */
    box-sizing: border-box;
}

.list-custom-small a i:first-child {
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 8px;
    text-align: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.list-custom-small a span {
    font-weight: 500;
    flex: 1;
    line-height: 1.2;
}

.list-custom-small a i:last-child {
    margin-left: 5px;
    color: #ccc;
    font-size: 12px;
}

/* Page Content */
.page-content {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Card Styles */
.card-style {
    overflow: hidden;
    margin: 0 15px 15px 15px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
    background-color: #fff;
}

/* Background Colors */
.bg-blue-dark {
    background-color: var(--primary-color) !important;
    color: #fff;
}

.bg-red-dark {
    background-color: var(--danger-color) !important;
    color: #fff;
}

.bg-green-dark {
    background-color: var(--success-color) !important;
    color: #fff;
}

.bg-brown-dark {
    background-color: #795548 !important;
    color: #fff;
}

.bg-gray-dark {
    background-color: var(--secondary-color) !important;
    color: #fff;
}

/* Text Colors */
.color-blue-dark {
    color: var(--primary-color) !important;
}

.color-red-dark {
    color: var(--danger-color) !important;
}

.color-green-dark {
    color: var(--success-color) !important;
}

.color-brown-dark {
    color: #795548 !important;
}

.color-gray-dark {
    color: var(--secondary-color) !important;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Clear Space */
.header-clear-small {
    padding-top: 60px;
}

/* Theme Support */
.theme-light {
    color: #1f1f1f;
    background-color: #f8f9fa;
}

.theme-dark {
    color: #fff;
    background-color: #0f1117;
}

.theme-dark .card, .theme-dark .header, .theme-dark .footer-bar-6, .theme-dark .menu {
    background-color: #1f2229;
    color: #fff;
}

.theme-dark .list-custom-small a {
    color: #fff;
    border-bottom: solid 1px rgba(255,255,255,0.05);
}

.theme-dark .header-icon, .theme-dark .header-title {
    color: #fff;
}

/* Responsive adjustments */
@media (min-width: 992px) {
    body {
        margin: 0 auto;
        border-left: 1px solid rgba(0,0,0,0.05);
        border-right: 1px solid rgba(0,0,0,0.05);
    }

    .header, .footer-bar-6 {
        left: 50%;
        transform: translateX(-50%);
    }
}
