:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
}

/* Dashboard Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}

/* Statistics Cards */
.stat-card {
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    margin-bottom: 20px;
}

.stat-card i {
    opacity: 0.3;
    font-size: 3rem;
}

/* Tables */
.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

/* Badges */
.badge {
    padding: 5px 10px;
    font-weight: 500;
    border-radius: 5px;
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.required:after {
    content: " *";
    color: var(--danger-color);
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* Dropdown menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 10px 10px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Footer */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 20px 0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .table-responsive {
        border: none;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Investment Analysis */
.investment-summary {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Document Upload */
.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-area:hover {
    background-color: rgba(0,123,255,0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Live Rates Ticker */
.rates-ticker {
    background-color: var(--dark-color);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}

.rates-ticker span {
    display: inline-block;
    padding: 0 20px;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}