/* MailManager Brand CSS Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #ffffff;
    --primary-color: #0054AA;
    --accent-color: #E7BE2A;
    --text-color: #2D3748;
    --sidebar-bg: #f8fafc;
    --sidebar-text: #4a5568;
    --sidebar-hover-bg: #edf2f7;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: #f7fafc;
    overflow-x: hidden;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1a202c;
}

/* Primary Button Styling */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    font-weight: 500;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #004080 !important;
    border-color: #004080 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 84, 170, 0.25) !important;
}

.btn-accent {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #1a202c !important;
    font-weight: 500;
}
.btn-accent:hover {
    background-color: #d6af20 !important;
    border-color: #d6af20 !important;
}

/* Border Accent lines */
.border-accent {
    border-color: var(--accent-color) !important;
}

/* Dashboard Cards */
.card-stat {
    border: none;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.card-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Collapsible Lateral Sidebar Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-right: 1px solid var(--border-color);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    z-index: 999;
}

#sidebar.active {
    margin-left: -260px;
}

#sidebar .sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

#sidebar .sidebar-logo {
    max-height: 40px;
    display: block;
    margin: 0 auto;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

#sidebar ul li a i {
    width: 24px;
    margin-right: 10px;
    font-size: 1.1rem;
    text-align: center;
}

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: var(--primary-color);
    background: var(--sidebar-hover-bg);
    border-left-color: var(--primary-color);
}

/* Content Area */
#content {
    width: 100%;
    min-height: 100vh;
    transition: all var(--transition-speed);
}

.navbar-custom {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}

/* Responsive Table styling */
.table-responsive-custom {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}
.table-custom th {
    font-weight: 600;
    color: #4a5568;
    border-bottom-width: 1px;
}
.table-custom td {
    vertical-align: middle;
    color: #2d3748;
}

/* Micro-animations and hover transitions */
a, button {
    transition: all 0.2s ease-in-out;
}

/* User Profile Badge */
.user-badge {
    background-color: #edf2f7;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Mobile responsive menu button */
#sidebarCollapse {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Mobile Media Queries */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    .wrapper {
        position: relative;
    }
    #sidebar.active {
        position: absolute;
        height: 100%;
    }
}
