.cytt-calculator-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

.cytt-calculator-form {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cytt-input-group {
    margin-bottom: 1.5rem;
}

.cytt-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.cytt-tooltip {
    cursor: help;
    margin-left: 0.25rem;
    opacity: 0.6;
    font-size: 0.8rem;
}

.cytt-input, .cytt-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cytt-input:focus, .cytt-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.cytt-button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cytt-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.cytt-button-primary {
    background: #4299e1;
    color: white;
}

.cytt-button-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.cytt-button-secondary {
    background: #a0aec0;
    color: white;
}

.cytt-button-secondary:hover {
    background: #718096;
}

.cytt-results {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cytt-results-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.cytt-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.cytt-result-label {
    font-weight: 600;
}

.cytt-result-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.cytt-result-details {
    font-size: 0.9rem;
    opacity: 0.9;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .cytt-calculator-form {
        padding: 1.5rem;
    }
    
    .cytt-button-group {
        flex-direction: column;
    }
    
    .cytt-result-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

.cytt-input:focus-visible,
.cytt-select:focus-visible,
.cytt-button:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .cytt-calculator-form {
        border: 2px solid #000;
    }
    
    .cytt-input, .cytt-select {
        border: 2px solid #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cytt-input, .cytt-select, .cytt-button {
        transition: none;
    }
    
    .cytt-results {
        animation: none;
    }
}

.cytt-input-error {
    border-color: #e53e3e !important;
}

.cytt-error {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #fed7d7;
    border-radius: 4px;
}