:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f72585;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: var(--dark);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 25px;
    text-align: center;
}

header a {
    text-decoration: none; /* Remove the underline */
    color: inherit; /* Optional: to inherit the text color from its parent element */
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 5px; 
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.calculator {
    padding: 25px;
}

.input-group {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.input-section {
    flex: 1;
    min-width: 200px;
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.input-section h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-field {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="number"], input[type="range"] {
    width: 100%;
}

input[type="number"] {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

input[type="number"]:focus {
    border-color: var(--primary);
    outline: none;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    flex-grow: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.value-display {
    min-width: 60px;
    text-align: center;
    font-weight: bold;
    color: var(--primary);
}

button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
    display: block;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.results {
    margin-top: 30px;
    background: var(--light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: none;
}

.results h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.highlight {
    font-weight: bold;
    color: var(--primary);
}

.emoji {
    font-size: 1.2em;
    margin-right: 5px;
}

.summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.summary-card {
    flex: 1;
    min-width: 150px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.summary-card h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.summary-card p {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-section {
        width: 100%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}

.logo-link {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    text-decoration: none;
    color: #4a6baf;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.1);
    color: #3a5699;
}

.logo-icon {
    font-size: 2.5rem;
}

