/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --dark-bg: #121212;
    --sidebar-bg: #1e1e1e;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --accent-color: #22d3ee;
    --border-color: #333333;
    --chart-color: #0066cc;
    --negative-color: #ff4d4d;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
}

a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-text {
    margin-bottom: 0.5rem;
}

.logo-personal {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: bold;
}

.logo-capital {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-subtitle {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem 0;
}

input,select {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-color);
    color: #000000;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #1ab8d2;
}

.forgot-password {
    text-align: center;
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 100;
}

.left-sidebar {
    left: 0;
    transform: translateX(-100%);
}

.right-sidebar {
    right: 0;
    transform: translateX(100%);
}

.sidebar.active {
    transform: translateX(0);
}

.main-content {
    flex: 1;
    padding: 1rem;
    margin-left: 0;
    margin-right: 0;
    transition: margin 0.3s ease;
    padding-top: 60px; /* Space for the toggle buttons */
}

.sidebar-toggle {
    position: fixed;
    top: 1rem;
    background-color: var(--sidebar-bg);
    color: var(--text-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
}

.left-toggle {
    left: 1rem;
}

.right-toggle {
    right: 1rem;
}

.sidebar-menu {
    padding: 1rem;
}

.menu-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item-highlight {
    background-color: var(--accent-color);
    color: #000000;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.menu-item-value {
    font-weight: bold;
}

/* Dashboard Content Styles */
.dashboard-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.total-value {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.period-info {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.chart-container {
    background-color: var(--chart-color);
    height: 200px;
    border-radius: 4px;
    position: relative;
    margin-bottom: 1.5rem;
}

.chart-label {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.chart-label-top-left {
    top: 0.5rem;
    left: 0.5rem;
}

.chart-label-bottom-left {
    bottom: 0.5rem;
    left: 0.5rem;
}

.chart-label-top-right {
    top: 0.5rem;
    right: 0.5rem;
}

.chart-label-bottom-right {
    bottom: 0.5rem;
    right: 0.5rem;
}

.chart-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    border-top: 1px dashed rgba(255, 255, 255, 0.5);
}

.chart-line-1 {
    top: 25%;
}

.chart-line-2 {
    top: 50%;
}

.chart-line-3 {
    top: 75%;
}

.accounts-list {
    margin-bottom: 1.5rem;
}

.account-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-details {
    display: flex;
    flex-direction: column;
}

.account-name {
    margin-bottom: 0.25rem;
}

.account-owner {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.account-value {
    font-weight: bold;
}

.negative-value {
    color: var(--negative-color);
}

.btn-link-account {
    width: 100%;
    background-color: var(--sidebar-bg);
    color: var(--text-color);
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-link-account:hover {
    background-color: #333333;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .left-sidebar, .right-sidebar {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 250px;
        margin-right: 250px;
        padding-top: 1rem;
    }
    
    .sidebar-toggle {
        display: none;
    }
}