* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 2rem;
}

.calculator {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.parameters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b3b3b3;
    font-weight: 500;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #404040;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #363636;
    color: #ffffff;
}

input:focus {
    outline: none;
    border-color: #3498db;
    background: #404040;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.additional-costs {
    grid-column: 1 / -1;
    border: 2px solid #404040;
    border-radius: 6px;
    overflow: hidden;
}

.dropdown-toggle {
    width: 100%;
    padding: 1rem;
    background: #363636;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.dropdown-toggle:hover {
    background: #404040;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: #b3b3b3;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    padding: 1rem;
    background: #2d2d2d;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.dropdown-content.show {
    display: grid;
}

.results {
    background: #363636;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #404040;
}

.result-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Remove bottom border from the last visible result item */
.result-item:last-child:not(.individual-share),
.result-item.individual-share[style*="display: none"] + .result-item:last-child {
    border-bottom: none;
}

.label {
    color: #b3b3b3;
}

.value {
    font-weight: 600;
    color: #ffffff;
}

.value.error {
    color: #e74c3c;
    font-style: italic;
}

.share-section {
    text-align: center;
}

.share-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.share-button:hover {
    background: #2980b9;
}

.share-link {
    margin-top: 1rem;
    word-break: break-all;
    color: #b3b3b3;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .parameters {
        grid-template-columns: 1fr;
    }
    
    .container {
        margin: 1rem auto;
    }
    
    .calculator {
        padding: 1rem;
    }
} 