:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
    --warning: #f39c12;
    --info: #1abc9c;
    --dark-bg: #1a1f2d;
    --card-bg: #2d3748;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--light);
}

.navbar {
    background: linear-gradient(135deg, var(--primary), #0b335b);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1677442135133-33d364e7d1b6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
}

.card {
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 25px;
    background-color: white;
}

.dark-mode .card {
    background-color: var(--card-bg);
    color: var(--light);
    border: 1px solid #3d4756;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    background-color: rgba(52, 152, 219, 0.1);
}

.dark-mode .card-header {
    background-color: rgba(52, 152, 219, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    border: none;
    padding: 10px 24px;
    font-weight: 600;
}

.btn-outline-primary {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline-primary:hover {
    background: var(--secondary);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.stock-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
}

.price-change {
    font-size: 1.2rem;
    font-weight: 600;
}

.positive {
    color: var(--success);
}

.negative {
    color: var(--accent);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--info));
    border-radius: 2px;
}

.dashboard-card {
    height: 100%;
}

.dashboard-value {
    font-size: 2rem;
    font-weight: 700;
}

.transaction-table {
    font-size: 0.9rem;
}

.transaction-table th {
    font-weight: 600;
}

.transaction-table tr {
    transition: background-color 0.2s;
}

.transaction-table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.dark-mode .transaction-table tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

footer {
    background: linear-gradient(135deg, var(--primary), #1a2530);
    color: white;
    padding: 60px 0 30px;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.investment-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.dark-mode .form-control, .dark-mode .form-select {
    background-color: #2d3748;
    border-color: #3d4756;
    color: var(--light);
}

.dark-mode .form-control:focus, .dark-mode .form-select:focus {
    background-color: #2d3748;
    color: var(--light);
}

.progress {
    height: 10px;
    border-radius: 5px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .stock-price {
        font-size: 2.2rem;
    }
    
    .dashboard-value {
        font-size: 1.5rem;
    }
}