/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar Styles */
.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #2c3e50;
    color: #fff;
    transition: all 0.3s;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.sidebar.active {
    margin-left: -250px;
}

.sidebar-header {
    padding: 20px;
    background: #1a252f;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

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

.sidebar ul li {
    padding: 10px 0;
}

.sidebar ul li a {
    padding: 10px 20px;
    font-size: 1rem;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar ul li a:hover {
    background: #1a252f;
}

.sidebar ul li.active > a {
    background: #1a252f;
    border-left: 4px solid #3498db;
}

.sidebar ul li a i {
    margin-right: 10px;
}

/* Content Styles */
.content {
    width: calc(100% - 250px);
    margin-left: 250px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .content {
        width: 100%;
        margin-left: 0;
    }
    
    #sidebarCollapse {
        display: block;
    }
}

/* Balance Cards */
.balance-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.balance-card.needs-reauth {
    border: 2px solid #ffc107;
}

.balance-amount {
    color: #2c3e50;
    font-weight: 600;
    margin: 15px 0;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Custom Name Edit */
.custom-name {
    font-weight: 500;
}

.edit-name {
    padding: 0 5px;
    text-decoration: none;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.3rem 0.75rem;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    margin-bottom: 20px;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Buttons */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Badge Styles */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Table Styles */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

/* Modal Styles */
.modal-content {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}