:root {
    --primary: hsl(259, 100%, 65%);
    --error: hsl(0, 100%, 67%);
    --white: hsl(0, 0%, 100%);
    --off-white: hsl(0, 0%, 94%);
    --light-grey: hsl(0, 0%, 86%);
    --smokey-grey: hsl(0, 1%, 44%);
    --off-black: hsl(0, 0%, 8%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--off-white);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.calculator-container {
    background-color: var(--white);
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    border-radius: 1.5rem 1.5rem 6rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.calculator-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--primary);
    border-radius: 50% 0 0 0;
    transform: translate(30%, 30%);
    opacity: 0.1;
    z-index: 0;
}

.calculator-title {
    color: var(--off-black);
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 5vw, 2rem);
    text-align: center;
    position: relative;
    z-index: 1;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.date-input-wrapper {
    width: 100%;
}

.date-input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--smokey-grey);
    font-weight: 600;
    font-size: 0.9rem;
}

.date-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s;
}

.date-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(76, 91, 219, 0.2);
}

.date-input.error {
    border-color: var(--error);
}

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

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

.calculate-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    margin: 1.5rem auto;
    position: relative;
    z-index: 1;
}

.calculate-btn:hover {
    background-color: var(--off-black);
    transform: translateY(-3px);
}

.calculate-btn svg {
    width: 24px;
    height: 24px;
}

.result-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-grey);
    position: relative;
    z-index: 1;
}

.result-line {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 800;
    font-style: italic;
    line-height: 1.3;
    color: var(--off-black);
}

.result-number {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Media Queries para telas maiores */
@media (min-width: 768px) {
    .input-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .date-input-wrapper {
        width: 30%;
    }
    
    .calculator-container {
        padding: 2.5rem;
    }
    
    .result-line {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .calculate-btn {
        width: 70px;
        height: 70px;
    }
}