* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.performance-summary {
    display: flex;
    width: 100%;
}

.summary-card {
    display: flex;
    flex-flow: column;
    width: 33.3%;
}


/* Sidebar Styles */

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.logo {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 4px 16px;
    border-radius: 12px;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 24px;
}

.support-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.support-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.support-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.support-text p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.support-btn {
    background: white;
    color: #10b981;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* Main Content */

.main-content {
    flex: 1;
    margin-left: 280px;
    background: #f8fafc;
    min-height: 100vh;
}

.top-header {
    background: white;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.header-left p {
    color: #64748b;
    font-size: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
}


/* Tab Content */

.tab-content {
    display: none;
    padding: 32px;
}

.tab-content.active {
    display: block;
}


/* Dashboard Grid */

.dashboard-grid {
    display: grid;
    gap: 24px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.wallet {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.stat-icon.investments {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.stat-icon.expenses {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.stat-icon.roi {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.stat-trend {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.stat-trend.up {
    background: #dcfce7;
    color: #16a34a;
}

.stat-trend.down {
    background: #fef2f2;
    color: #dc2626;
}

.stat-info h3 {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}


/* Charts Section */

.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.chart-controls select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
}

.chart-container {
    height: 300px;
    position: relative;
}


/* Progress Circle */

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#10b981 0deg, #e2e8f0 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: "";
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.progress-text {
    position: relative;
    z-index: 1;
    text-align: center;
}

.progress-percentage {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.progress-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.progress-details {
    text-align: center;
}

.progress-time {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.progress-desc {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}


/* Actions Card */

.actions-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.actions-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.action-btn.secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Section Headers */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header h2 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}


/* Investment and Expense Lists */

.investments-list,
.expenses-list {
    display: grid;
    gap: 16px;
}

.investment-item,
.expense-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.investment-item:hover,
.expense-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.investment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.business-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.business-type {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.investment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.detail-item {
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.detail-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 4px;
}

.investment-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}


/* Expense Filters */

.expense-filters {
    margin-bottom: 20px;
}

.expense-filters select {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    color: #64748b;
}


/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block !important;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.close:hover {
    color: #64748b;
}


/* Form Styles */

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

form h3 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

form input,
form select,
form textarea {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

form textarea {
    resize: vertical;
    min-height: 80px;
}

form button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}


/* Analytics */

.analytics-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analytics-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.analytics-card h4 {
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
}

.progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    background: linear-gradient(135deg, #10b981, #059669);
    height: 100%;
    transition: width 0.3s ease;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}


/* Bank Accounts Styles */

.accounts-overview {
    margin-bottom: 32px;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.account-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.account-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.account-type {
    font-size: 14px;
    color: #64748b;
    text-transform: capitalize;
}

.account-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.account-balance {
    text-align: center;
    margin: 20px 0;
}

.balance-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.account-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.account-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-btn.deposit {
    background: #dcfce7;
    color: #16a34a;
}

.account-btn.withdraw {
    background: #fef2f2;
    color: #dc2626;
}

.account-btn:hover {
    transform: translateY(-1px);
}


/* Transactions Section */

.transactions-section {
    margin-top: 32px;
}

.transaction-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.transaction-filters select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
}

.transactions-list {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.3s ease;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background: #f8fafc;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 16px;
}

.transaction-icon.deposit {
    background: #dcfce7;
    color: #16a34a;
}

.transaction-icon.withdrawal {
    background: #fef2f2;
    color: #dc2626;
}

.transaction-icon.expense {
    background: #fef3c7;
    color: #d97706;
}

.transaction-icon.investment {
    background: #dbeafe;
    color: #2563eb;
}

.transaction-icon.revenue {
    background: #f3e8ff;
    color: #7c3aed;
}

.transaction-details {
    flex: 1;
}

.transaction-description {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.transaction-meta {
    font-size: 14px;
    color: #64748b;
}

.transaction-amount {
    text-align: right;
}

.transaction-amount .amount {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.transaction-amount .amount.positive {
    color: #16a34a;
}

.transaction-amount .amount.negative {
    color: #dc2626;
}

.transaction-date {
    font-size: 12px;
    color: #94a3b8;
}

.empty-transactions {
    text-align: center;
    padding: 40px;
    color: #64748b;
}


/* Responsive Design */

@media (max-width: 1024px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
    .accounts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .main-content {
        margin-left: 0;
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
    .top-header {
        padding: 16px 20px;
    }
    .tab-content {
        padding: 20px;
    }
    .section-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .action-buttons {
        justify-content: center;
    }
    .investment-details {
        grid-template-columns: 1fr;
    }
}


/* Performance Summary Card on Dashboard */

.performance-summary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.performance-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.performance-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.performance-summary-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}


/* Performance Table Card Styles */

.performance-table-card .stat-info {
    padding-top: 8px;
}

.performance-table-card h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.performance-table {
    width: 100%;
    font-size: 11px;
}

.performance-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-table-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.performance-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
    padding: 4px 0;
    align-items: center;
    font-size: 10px;
}

.performance-table-business {
    font-weight: 500;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.performance-table-roi {
    font-weight: 600;
    text-align: center;
}

.performance-table-roi.positive {
    color: #16a34a;
}

.performance-table-roi.negative {
    color: #dc2626;
}

.performance-table-breakeven {
    font-size: 9px;
    color: #64748b;
    text-align: center;
}

.performance-table-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 10px;
    padding: 12px 0;
    font-style: italic;
}

.stat-icon.performance {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.view-all-link {
    color: #10b981;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #059669;
    text-decoration: underline;
}

.performance-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-performance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dashboard-performance-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.performance-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.performance-info {
    flex: 1;
    min-width: 0;
}

.business-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.business-metrics {
    display: flex;
    gap: 8px;
    align-items: center;
}

.roi-metric,
.profit-metric {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.roi-metric.positive,
.profit-metric.positive {
    background: #dcfce7;
    color: #16a34a;
}

.roi-metric.negative,
.profit-metric.negative {
    background: #fef2f2;
    color: #dc2626;
}

.performance-status {
    flex-shrink: 0;
}

.status-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.status-badge.break-even {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.empty-state-small {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}


/* Performance Tab Styles */

.performance-header {
    margin-bottom: 32px;
    background: #f1f5f9;
    color: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
}

.performance-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.performance-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.performance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.summary-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.summary-card h3 {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-card div {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.performance-list {
    display: grid;
    gap: 16px;
}

.performance-item {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.performance-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #10b981, #059669);
}

.performance-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.performance-item.rank-gold {
    border-left: 4px solid #ffd700;
    background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.performance-item.rank-silver {
    border-left: 4px solid #c0c0c0;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.performance-item.rank-bronze {
    border-left: 4px solid #cd7f32;
    background: linear-gradient(135deg, #fef7ed, #ffffff);
}

.performance-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}

.rank-number {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.rank-icon {
    font-size: 20px;
    color: #ffd700;
}

.performance-details {
    flex: 1;
}

.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.business-name {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.performance-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.break-even {
    background: #dcfce7;
    color: #16a34a;
}

.badge.not-break-even {
    background: #fef2f2;
    color: #dc2626;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.metric-value.profit-positive {
    color: #16a34a;
}

.metric-value.profit-negative {
    color: #dc2626;
}

.metric-value.roi-positive {
    color: #16a34a;
}

.metric-value.roi-negative {
    color: #dc2626;
}

.break-even-progress {
    margin-top: 16px;
}

.progress-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, #10b981, #059669);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.stat-icon.revenue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

@media (max-width: 768px) {
    .performance-item {
        flex-direction: column;
        text-align: center;
    }
    .performance-rank {
        align-self: center;
    }
    .performance-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .performance-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
    .chart-container {
        height: 250px;
    }
    .performance-metrics {
        grid-template-columns: 1fr;
    }
}

.performance-summary {
    display: flex !important;
    width: 100%;
}

.summary-card {
    display: flex !important;
    flex-flow: column;
    width: 33.3%;
}

.performance-item {
    width: 50%;
}

#performanceList {
    display: flex;
}

/* Audit Logs Styles */
.audit-logs-header {
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.audit-filters {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.audit-filters select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

.audit-logs-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.audit-logs-list {
    max-height: 600px;
    overflow-y: auto;
}

.audit-log-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.audit-log-item:hover {
    background-color: #f8fafc;
}

.audit-log-item:last-child {
    border-bottom: none;
}

.audit-log-main {
    flex: 1;
}

.audit-log-action {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 12px;
}

.audit-log-action.CREATE {
    background-color: #dcfce7;
    color: #166534;
}

.audit-log-action.UPDATE {
    background-color: #dbeafe;
    color: #1e40af;
}

.audit-log-action.DELETE {
    background-color: #fee2e2;
    color: #dc2626;
}

.audit-log-table {
    font-weight: 600;
    color: #374151;
}

.audit-log-details {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.audit-log-timestamp {
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
    min-width: 120px;
}

.audit-pagination {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
}

.audit-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#auditPageInfo {
    font-size: 14px;
    color: #6b7280;
}

.empty-audit-logs {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}