/* css/custom.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --primary-hover: #4338ca;
    /* Indigo 700 */
    --secondary-color: #64748b;
    /* Slate 500 */
    --bg-color: #f8fafc;
    /* Slate 50 */
    --card-bg: #ffffff;
    --text-color: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    --sidebar-width: 250px;
    --sidebar-bg: #1e1e2d;
    --sidebar-text: #a6a7b9;
    --sidebar-active: #ffffff;
    --sidebar-active-bg: #2b2b40;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
}

/* Sidebar Layout */
/* Sidebar Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    min-height: 100vh;
    transition: all 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar.active {
    margin-left: -250px;
}

.sidebar-header {
    padding: 20px;
    background: #151521;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar ul.components {
    padding: 15px 0;
    list-style: none;
    margin: 0;
}

.sidebar ul li a {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: var(--sidebar-active);
    background: var(--sidebar-active-bg);
    border-left-color: var(--primary-color);
}

.sidebar ul li a i {
    margin-right: 15px;
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

/* Mobile Toggle Navbar */
.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
        position: fixed;
        height: 100%;
    }

    .sidebar.active {
        margin-left: 0;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .content {
        width: 100%;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Cards */
.card {
    background: var(--card-bg);
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn {
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-group-sm>.btn,
.btn-sm {
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
}

.btn-outline-secondary:hover {
    background-color: #f1f5f9;
    color: var(--text-color);
    border-color: #cbd5e1;
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.footer {
    background-color: transparent;
    /* border-top: 1px solid #e2e8f0; */
    margin-top: auto;
}