/* Global styles */
:root {
    --primary-color: #8b0000;
    --secondary-color: #4a90e2;
    --accent-color: #1976d2;
    --gradient-primary: linear-gradient(135deg, #2c5aa0, #4a90e2);
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #fff;
    --text-negative: #e74c3c;
    --text-positive: #27ae60;
    --background-light: #ffffff;
    --background-grey: #f8f9fa;
    --border-light: #e9ecef;
    --shadow-light: rgba(44, 90, 160, 0.08);
}

/* Override Bootstrap text-primary */
.text-primary {
    color: var(--primary-color) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    /* background-color: var(--primary-color); */
    /* background-color: #f2f2f2; */
}

body {
    background: url(/assets/img/k2_bg.jpg); 
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--background-light); /* Clean white background */
    min-height: 100vh;
}

.container {
    max-width: 1200px;
}

/* Header styles */
.header {
    background-color: var(--background-light) !important;
    box-shadow: 0 2px 15px rgba(44, 90, 160, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
}

.header .container {
    max-width: 640px;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.brand-text {
    color: var(--primary-color);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary {
    background-image: linear-gradient(135deg, #8b0000, #a52a2a);
    border: none;
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    background-image: linear-gradient(135deg, #a52a2a, #cd5c5c);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 0, 0, 0.4);
}

.language-icon {
    color: var(--primary-color);
    font-weight: 500;
}

/* Hero section styles */
.hero-section {
    background-color: transparent;
    padding: 40px 0;
    color: var(--text-dark);
    min-height: 100vh;
}

.search-bar .input-group {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.search-bar .input-group-text {
    background-color: white;
    border: none;
}

.search-bar .form-control {
    border: none;
    padding: 12px 15px;
}

/* Stats card styles */
.stats-card {
    background-color: var(--background-light);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 24px var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--shadow-light);
}

.stats-card h2 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stats-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Market section styles */
.market-chart-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Market indices styles */
.market-indices .card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--shadow-light);
    border: 1px solid var(--border-light);
    background-color: var(--background-light);
}

.market-indices .card-header {
    background-color: white;
    padding: 0;
    border-bottom: none;
}

.market-indices .nav-tabs {
    border-bottom: 1px solid #f0f0f0;
}

.market-indices .nav-link {
    color: var(--text-light);
    border: none;
    padding: 15px 20px;
    font-weight: 500;
}

.market-indices .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-color: transparent;
}

.chart-area {
    background-color: #f8f9fa;
    border-radius: 5px;
}

.time-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.time-option {
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.time-option.active {
    background-color: var(--primary-color);
    color: white;
}

/* Index styles */
.indices-list {
    padding: 10px 0;
}

.index-item {
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.index-item:hover {
    background-color: #f8f9fa;
}

.index-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.index-badge.spx {
    background-color: #e74c3c;
}

.index-badge.ndx {
    background-color: #3498db;
}

.index-badge.dji {
    background-color: #2ecc71;
}

.index-badge.n225 {
    background-color: #9b59b6;
}

.index-badge.dax {
    background-color: #1abc9c;
}

.index-badge.ftse {
    background-color: #e67e22;
}

.index-name {
    font-weight: 500;
    font-size: 1rem;
}

.index-subname {
    color: var(--text-light);
    font-size: 0.85rem;
}

.index-value {
    font-weight: 500;
    font-size: 1rem;
    text-align: right;
}

.index-change {
    font-size: 0.9rem;
    font-weight: 500;
}

.index-change-value {
    font-size: 0.85rem;
}

.positive {
    color: var(--text-positive);
}

.negative {
    color: var(--text-negative);
}

/* Project Digital styles */
.project-digital .card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--shadow-light);
    border: 1px solid var(--border-light);
    background-color: var(--background-light);
    transition: all 0.3s ease;
}

.project-digital .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--shadow-light);
}

.project-title {
    color: var(--primary-color);
    font-weight: 600;
}

.project-card img {
    border-radius: 10px;
    height: 150px;
    object-fit: cover;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-name {
    color: #000;
    margin-top: 10px;
    font-weight: 500;
    font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .stats-card .row .col {
        margin-bottom: 20px;
    }
    
    .project-card img {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .stats-card .row {
        flex-direction: column;
    }
    
    .stats-card .col {
        width: 100%;
    }
    
    .time-selector {
        flex-wrap: wrap;
    }
    
    .time-option {
        margin-bottom: 10px;
    }
}

/* App Container and Bottom Navigation */
.app-container {
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 70px; /* Space for bottom nav */
    padding-top: 20px; /* Add some space between header and content */
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-light) !important;
    box-shadow: 0 -2px 15px var(--shadow-light);
    border-top: 1px solid var(--border-light);
    z-index: 1000;
}

.bottom-nav .container {
    max-width: 640px;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
}

.nav-item i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.8rem;
}

.nav-item a {
    color: var(--primary-color) !important;
}

.nav-item a:hover {
    color: var(--accent-color) !important;
}

/* Account Page Styles */
.personal-info .info-item {
    font-size: 1.1rem;
}

.personal-info .info-item span:first-child {
    font-weight: 500;
}

.menu-grid .card {
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-light);
    background: var(--background-light);
    border-radius: 12px;
}

.menu-grid .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--shadow-light);
    border-color: var(--accent-color);
}

.menu-grid .card-body {
    padding: 1.5rem;
}

.menu-grid i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.menu-grid p {
    color: var(--text-dark);
    font-weight: 500;
}

.logout-section .btn {
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    background-color: #ff4d4f;
    border-color: #ff4d4f;
}

.logout-section .btn:hover {
    background-color: #ff7875;
    border-color: #ff7875;
} 