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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 3em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: -1px;
}

.time-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.time-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-btn i {
    font-size: 1.2em;
}

.time-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.time-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.search-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.search-section input {
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: white;
}

.search-section input:focus {
    outline: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.search-section input::placeholder {
    color: #999;
}

.sort-select {
    padding: 15px 45px 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #667eea;
    min-width: 200px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
}

.sort-select:focus {
    outline: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.sort-select:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: white;
    font-size: 1.5em;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stock-card {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.stock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stock-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-header {
    margin-bottom: 15px;
}

.company-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.3;
}

.symbol {
    font-size: 1.1em;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.symbol-text {
    flex: 1;
}

.chart-icon {
    color: #667eea;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 6px;
}

.chart-icon:hover {
    background: #edf2f7;
    color: #3182ce;
    transform: scale(1.1);
}

.metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

.metric {
    text-align: center;
    flex: 1;
    padding: 12px;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.metric:hover {
    background: #edf2f7;
    transform: scale(1.05);
}

.metric-label {
    font-size: 0.75em;
    color: #718096;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.metric-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #2d3748;
}

.positive {
    color: #10b981;
}

.negative {
    color: #ef4444;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 40px;
    border: none;
    border-radius: 25px;
    width: 85%;
    max-width: 1000px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #cbd5e0;
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.close:hover {
    color: #667eea;
    transform: rotate(90deg);
}

#modalTitle {
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 1.8em;
    font-weight: 700;
}

#stockChart {
    max-height: 450px;
}
/* Navigation Styles */
.nav-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    color: #667eea;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
