/* Variables */
:root {
    --primary: #4e73df;
    --secondary: #6c757d;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --sidebar-width: 250px;
    --topbar-height: 70px;
}

/* Global Styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8f9fc;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    position: fixed;
    height: 100%;
    color: white;
    transition: all 0.3s;
    z-index: 999;
}

.sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar ul li {
    padding: 10px 20px;
    margin-bottom: 5px;
}

.sidebar ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar ul li.active a,
.sidebar ul li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Content */
.content {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
}

/* Navbar */
.navbar {
    height: var(--topbar-height);
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.15);
}

.img-profile {
    height: 40px;
    width: 40px;
    margin-left: 10px;
}

/* Cards */
.card {
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.1);
    border: none;
    border-radius: 8px;
    margin-bottom: 24px;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .content {
        width: 100%;
        margin-left: 0;
    }
    
    .wrapper.sidebar-toggled .sidebar {
        margin-left: 0;
    }
    
    .wrapper.sidebar-toggled .content {
        margin-left: var(--sidebar-width);
    }
}

/* Dashboard Stats */
.stat-card {
    border-left: 4px solid;
    border-radius: 4px;
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.1);
    position: relative;
    transition: transform .3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card-clients {
    border-left-color: var(--primary);
}

.stat-card-payments {
    border-left-color: var(--success);
}

.stat-card-pending {
    border-left-color: var(--warning);
}

.stat-card-balance {
    border-left-color: var(--info);
}

.stat-card i {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: rgba(0,0,0,0.1);
}

/* Tables */
.table-responsive {
    padding: 0;
}

.table thead th {
    background-color: #f8f9fc;
    font-weight: 600;
    border-top: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

/* Forms */
.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

/* Custom Classes */
.bg-gradient-primary {
    background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    background-size: cover;
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem 0 rgba(58,59,69,.2)!important;
}

.rounded-circle {
    border-radius: 50%!important;
}