* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    padding: 30px;
    border: 1px solid #2a2a2a;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 50px;
    width: auto;
}

h1 {
    color: #ffffff;
    font-size: 2.5em;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-menu {
    position: relative;
}

.user-icon {
    background: transparent;
    border: 2px solid #2196F3;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
}

.user-icon:hover {
    background: #2196F3;
    transform: scale(1.05);
}

.user-icon svg {
    color: #2196F3;
}

.user-icon:hover svg {
    color: white;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: #2a2a2a;
    border: 1px solid #2196F3;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #333;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #333;
}

button {
    background: #333;
    color: white;
    border: 1px solid #444;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.status {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.status.show {
    display: block;
}

.status.syncing {
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #2196F3;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.time-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.range-btn {
    background: #2a2a2a;
    color: #999;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #333;
    cursor: pointer;
    transition: all 0.2s;
}

.range-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(0);
    box-shadow: none;
}

.range-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.current-balance, .burn-rate, .revenue-rate, .runway {
    text-align: center;
}

.current-balance h2, .burn-rate h2, .revenue-rate h2, .runway h2 {
    color: #888;
    font-size: 1em;
    margin-bottom: 10px;
}

.current-balance p, .burn-rate p, .revenue-rate p, .runway p {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
}

.burn-rate p {
    color: #ff6b6b;
}

.revenue-rate p {
    color: #4ecdc4;
}

.runway p {
    color: #ffa500;
}

.chart-controls {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: #fff;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #fff;
}

.chart-container {
    background: #222;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    height: 400px;
    position: relative;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: #fff;
}

.chart-container canvas {
    max-height: 350px;
}

.cashflow-chart {
    height: 500px;
}

.data-tables {
    margin-top: 40px;
}

.table-section {
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.table-section h3 {
    margin-bottom: 20px;
    color: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #333;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
    color: #ffffff;
}

th {
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

tr:hover {
    background: #333;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-badge.paid {
    background: #d4edda;
    color: #155724;
}

.status-badge.open {
    background: #fff3cd;
    color: #856404;
}