* {
    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%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c3e50;
    padding: 25px;
}

h1 {
    color: white;
    margin: 0;
    font-size: 2.2rem;
}

.currency-toggle {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: bold;
}

.currency-toggle:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.currency-toggle:active {
    transform: translateY(0);
}

p {
    text-align: center;
    margin-bottom: 25px;
    color: #7f8c8d;
    font-size: 1.1rem;
    padding: 0 25px;
}

.calculators-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 30px 30px;
}

.calculator-section {
    flex: 1;
    min-width: 300px;
    background: #ecf0f1;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.kse100-section {
    border-top: 5px solid #667eea;
}

.kmi30-section {
    border-top: 5px solid #764ba2;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.input-field {
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1rem;
    color: #2c3e50;
}

input {
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: bold;
    margin-bottom: 20px;
}

.kse100-btn {
    background: #667eea;
    color: white;
}

.kmi30-btn {
    background: #764ba2;
    color: white;
}

.kse100-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.kmi30-btn:hover {
    background: #6a4190;
    transform: translateY(-2px);
}

.kse100-btn:active, .kmi30-btn:active {
    transform: translateY(0);
}

.result-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.kse100-card {
    border-left: 5px solid #667eea;
}

.kmi30-card {
    border-left: 5px solid #764ba2;
}

.kse100-money-card {
    border-left: 5px solid #667eea;
    background: #e8f4ff;
}

.kmi30-money-card {
    border-left: 5px solid #764ba2;
    background: #f0e6f7;
}

.kse100-shares-card {
    border-left: 5px solid #667eea;
    background: #e8f4ff;
}

.kmi30-shares-card {
    border-left: 5px solid #764ba2;
    background: #f0e6f7;
}

.result-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

#kse100-result, #kmi30-result {
    font-size: 1.4rem;
}

#kse100-result {
    color: #667eea;
}

#kmi30-result {
    color: #764ba2;
}

#kse100-money-result, #kmi30-money-result {
    font-size: 1.4rem;
    font-weight: bold;
}

#kse100-money-result {
    color: #667eea;
}

#kmi30-money-result {
    color: #764ba2;
}

#kse100-shares-result, #kmi30-shares-result {
    font-size: 1.4rem;
    font-weight: bold;
}

#kse100-shares-result {
    color: #667eea;
}

#kmi30-shares-result {
    color: #764ba2;
}

.info-section {
    padding: 20px 30px 30px;
    background: #ecf0f1;
    border-top: 1px solid #bdc3c7;
}

.info-section ul {
    padding-left: 20px;
}

.info-section li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.info-section strong {
    color: #2c3e50;
}

@media (max-width: 768px) {
    .calculators-container {
        flex-direction: column;
    }
    
    .container {
        margin: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    h1 {
        font-size: 1.8rem;
        padding: 20px;
    }
    
    .calculators-container, .info-section {
        padding: 20px;
    }
    
    .result-value {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}