:root {
    --act-primary: #1d4ed8;
    --act-secondary: #10b981;
    --act-light: #f3f4f6;
    --act-dark: #1f2937;
    --act-danger: #ef4444;
}

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

.act-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.act-card-title {
    color: var(--act-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.act-card-title svg {
    width: 24px;
    height: 24px;
}

.act-form-group {
    margin-bottom: 1rem;
    position: relative;
}

.act-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.act-form-group input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.act-form-group input[type="date"]:focus {
    outline: none;
    border-color: var(--act-primary);
}

.act-form-group input.act-error {
    border-color: var(--act-danger);
}

.act-error-message {
    color: var(--act-danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.act-error-message.show {
    display: block;
}

.act-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.act-flex-group button {
    background-color: var(--act-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.act-flex-group button:hover {
    background-color: #1e40af;
}

.act-flex-group button.act-secondary {
    background-color: var(--act-secondary);
}

.act-flex-group button.act-secondary:hover {
    background-color: #059669;
}

.act-flex-group button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.act-flex-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.act-flex-group button {
    flex: 1;
    min-width: 120px;
}

.act-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.act-result-card {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.act-result-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.act-result-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--act-primary);
    margin: 0.5rem 0;
}

.act-result-unit {
    font-size: 0.9rem;
    color: #6b7280;
}

.act-countdown {
    background: linear-gradient(135deg, #1d4ed8 0%, #10b981 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 1.5rem 0;
}

.act-countdown-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.act-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.act-countdown-unit {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    min-width: 70px;
}

.act-countdown-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.act-countdown-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.act-compatibility-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.act-units-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.act-unit-checkbox {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    user-select: none;
}

.act-unit-checkbox input {
    margin-right: 0.5rem;
}

.act-heartbeat {
    display: inline-block;
    animation: act-heartbeat 1s infinite;
    color: var(--act-danger);
}

@keyframes act-heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.act-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

.act-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--act-primary);
    opacity: 0.8;
}

.act-future-info {
    background-color: #e0f2fe;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {            
    .act-countdown-unit {
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .act-countdown-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .act-flex-group {
        flex-direction: column;
    }
    
    .act-countdown-timer {
        gap: 0.5rem;
    }
    
    .act-countdown-unit {
        min-width: 50px;
        padding: 0.25rem;
    }
    
    .act-countdown-value {
        font-size: 1.2rem;
    }
}