/* ===================================
   EDC Structural - Professional Styling
   =================================== */

/* Root Variables */
:root {
    --primary-color: #22253c;
    --secondary-color: #87c24f;
    --accent-color: #4a9eff;
    --text-light: #f5f5f5;
    --text-dark: #333333;
    --warning-color: #ff6b6b;
    --success-color: #4caf50;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2d4a 100%);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.site-logo {
    width: 200px;
    height: auto;
    margin-right: 30px;
}

.header-text h1 {
    margin: 0;
    color: var(--text-light);
    font-size: 2.2em;
    font-weight: 300;
}

.subtitle {
    margin: 5px 0 0 0;
    color: var(--secondary-color);
    font-size: 1.1em;
    font-weight: 300;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: var(--warning-color);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-weight: 500;
    border-bottom: 3px solid #e74c3c;
}

.disclaimer-banner strong {
    font-weight: 700;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Footer Styles */
.site-footer {
    background: #1a1d2e;
    margin-top: 50px;
    padding: 40px 0 20px 0;
    border-top: 3px solid var(--secondary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p, .footer-section li {
    color: var(--text-light);
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    padding: 2px 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    margin-top: 30px;
    color: #888;
    font-size: 0.9em;
}

/* Legacy Styles (keeping for compatibility) */
gmp-map {
    display: block;
    margin: 20px;
    width: 95%;
    height: 500px;
    margin-bottom: 1em;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

h1 {
    color: var(--text-light);
    text-align: center;
}

h2 {
    color: var(--secondary-color);
    text-align: center;
    margin-top: 30px;
}

h3 {
    color: var(--text-dark);
    margin-left: 20px;
}
p{
    color: whitesmoke;
    text-align: left;
    text-overflow: clip;
    margin:auto;
    padding-left: 20px;
    line-height: 1.5; 
}
label{
    color:#9e8e6b;
    text-overflow: clip;
    margin: auto;
    padding-left: 20px;
    line-height: 1.5; 
    font-weight: bold;  
}
small{
    color: whitesmoke;
    text-align: left;
    text-overflow: clip;
    margin:auto;
    padding-left: 20px;
    line-height: 1.5; 
}

/* Location Info Styling */
#location-info {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px 20px;
    padding: 15px;
}

#location-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

#location-details {
    font-size: 14px;
}

#location-details div {
    margin: 5px 0;
    color: #555;
}

#coord-inputs {
    margin: 5px 20px;
    font-family: monospace, sans-serif;
    font-size: 10px;
    padding: 8px 8px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    
}

/* Form row styling for inline labels and inputs */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 20px;
}

.form-row label {
    flex: 0 0 250px; /* Fixed width for labels */
    margin: 0;
    padding: 0;
    padding-right: 10px;
}

.form-row input,
.form-row select {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

/*Building Section*/

#building-section {
    padding: 20px 0;
    background: whitesmoke;
    margin: 20px;
    flex: auto; /* Allow it to grow and shrink */
    box-sizing: border-box;
    border-radius: 5px;
    width: 95%; /* Set a width for the section */
    
}

/* Two columns layout for multipliers */
.two-columns {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

#wind-multipliers, #snow-multipliers {
    flex: 1 1 0;
    min-width: 320px;
    background: whitesmoke;
    border-radius: 5px;
    padding: 20px 0;
    margin: 20px 0;
    box-sizing: border-box;
}

#factors, #snow-factors {
    flex: 1 1 0;
    min-width: 320px;
    padding: 10px;
    color: whitesmoke;
    margin: 20px;
}

#advanced-terrain-status label {
    color: #333 !important;
    font-weight: normal;
    padding-left: 0;
}

#start-terrain-analysis:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#terrain-analysis-result {
    color: #333 !important;
    font-size: 11px;
    line-height: 1.4;
}

/* Analysis progress indicator from terrainCategory.js */
.analysis-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.progress-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    min-width: 300px;
}

.progress-content h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.progress-text {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #4a9eff);
    width: 0%;
    transition: width 0.3s ease;
}

/* Ring Distance Labels */
.ring-distance-label {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    padding: 2px 4px !important;
    font-family: 'Arial', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #000000 !important;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Calculate Section */
.calculate-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.calculate-btn {
    background: linear-gradient(135deg, var(--secondary-color), #76b13c);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #76b13c, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Wind Results Section */
#wind-results-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

#wind-results-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.results-table th {
    background: var(--primary-color);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.results-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.results-table tr:hover {
    background-color: #f0f8ff;
}

.design-wind-speed {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-color), #3a8ae6);
    border-radius: 6px;
    margin-top: 20px;
}

.design-wind-speed h4 {
    color: white;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

/* Responsive Table */
@media (max-width: 768px) {
    .results-table th,
    .results-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .results-table th {
        font-size: 11px;
    }
}
