/* Global font and reset */
* {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Container for iframe optimization */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: 100vh;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #333333;
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    margin: 0 0 10px 0;
}

.header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Main content layout - two columns */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Input column styles */
.input-column h2 {
    color: #2B5797;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* Form group styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dedede;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    min-height: 42px;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #a0ce4e;
    box-shadow: 0 0 0 2px rgba(160, 206, 78, 0.2);
}

/* Calculate button styles */
.calculate-button {
    background-color: #a0ce4e;
    color: #333333;
    border-radius: 4px;
    padding: 12px 24px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

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

.calculate-button:active {
    background-color: #8fb842;
}

/* Results column styles */
.results-column h2 {
    color: #2B5797;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* Message styles */
.success-message {
    background-color: #a0ce4e;
    padding: 15px;
    border-radius: 4px;
    color: #333333;
    margin-top: 20px;
    font-weight: 500;
}

.warning-message {
    background-color: #FF9800;
    padding: 15px;
    border-radius: 4px;
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Results container */
.results-container {
    background-color: white;
    padding: 25px;
    border-radius: 4px;
    border: 1px solid #dedede;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Result summary */
.result-summary {
    margin-bottom: 25px;
}

.result-summary p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.result-summary strong {
    color: #2B5797;
}

/* Table styles */
.results-table-container {
    margin: 20px 0;
    overflow-x: auto;
}

#results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: white;
}

#results-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dedede;
}

#results-table td {
    padding: 12px;
    border-bottom: 1px solid #dedede;
}

#results-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

#results-table tr:hover {
    background-color: #e8f5e8;
}

/* Footer styles */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #dedede;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header h1 {
        font-size: 1.6rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .results-container {
        padding: 20px;
    }
}

/* Iframe optimization - hide scrollbars and ensure clean embedding */
html, body {
    overflow-x: hidden;
}

/* Additional styling for professional appearance */
.container {
    border-radius: 0;
    box-shadow: none;
}

/* Ensure compatibility with iframe embedding */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}