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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2196F3;
    margin-bottom: 10px;
}

h2 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

h3 {
    color: #555;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Search section */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#tickerInput {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#searchButton {
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#searchButton:hover {
    background-color: #0b7dda;
}

.loading-indicator {
    display: none;
    margin-top: 10px;
    color: #666;
}

.error-message {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 4px;
}

/* Company info section */
.company-info {
    display: none;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.company-sector {
    color: #666;
    font-style: italic;
}

.company-data {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.data-item {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.data-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.data-value {
    font-size: 1.2rem;
    color: #2196F3;
}

/* Historical data section */
.historical-data {
    display: none;
    overflow-x: auto;
}

.historical-table {
    width: 100%;
    border-collapse: collapse;
}

.historical-table th,
.historical-table td {
    padding: 10px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.historical-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.historical-table td:first-child,
.historical-table th:first-child {
    text-align: left;
}

/* Input section */
.input-group {
    margin-bottom: 20px;
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-field {
    flex: 1;
}

.input-field label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.input-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}



.charts-section{
    display:none;
}


.calculate-container {
    margin-top: 30px;
    text-align: center;
}

.calculate-button {
    padding: 12px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.calculate-button:hover {
    background-color: #45a049;
}

/* Results section */
.results-section {
    display: none;
}

.valuation-results {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.valuation-results h3 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.result-item {
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.result-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.result-value {
    font-size: 1.4rem;
    color: #2196F3;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .company-data {
        grid-template-columns: 1fr;
    }
}
