:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #10B981;
    --background: #0F172A;
    --surface: rgba(30, 41, 59, 0.7);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --danger: #EF4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
}

/* Glassmorphism Background Shapes */
.background-shapes {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: #4F46E5;
}

.shape-2 {
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: #10B981;
}

.shape-3 {
    top: 40%;
    left: 60%;
    width: 300px;
    height: 300px;
    background: #8B5CF6;
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.025em;
}

header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    main {
        grid-template-columns: 1fr 1fr;
    }
}

/* Forms */
.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

input[type="date"],
input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Color Scheme for Browser Date Picker indicator */
::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Suspensions */
.suspensions-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--surface-border);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.suspensions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-icon {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
}

.suspension-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.suspension-item input {
    flex: 1;
}

.btn-remove {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: var(--danger);
    color: white;
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Main Button */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Resultados */
.result-panel {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

.result-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 2rem;
    width: 2px;
    background: var(--surface-border);
}

.timeline-step {
    position: relative;
    margin-bottom: 1.5rem;
}

.step-icon {
    position: absolute;
    left: -1.5rem;
    top: 0.2rem;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--background);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    transform: translateX(-50%);
    z-index: 1;
}

.final-step .step-icon {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--background);
    font-size: 0.8rem;
}

.step-content h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.date-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.date-final {
    font-size: 1.5rem;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Accordion Detalhes */
.details-accordion {
    margin-top: 1.5rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 1rem;
}

.accordion-header {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
}

.accordion-header:hover {
    color: var(--text-main);
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    margin-top: 1rem;
}

.accordion-content.open {
    display: block;
    animation: fadeIn 0.3s;
}

.days-list {
    list-style: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
}

/* Scrollbar estilizada */
.days-list::-webkit-scrollbar {
    width: 6px;
}
.days-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.days-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.day-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.day-item:last-child {
    border-bottom: none;
}

.day-util {
    color: var(--text-main);
}
.day-nao-util {
    color: var(--danger);
    opacity: 0.8;
}
.day-count {
    font-weight: bold;
    color: var(--primary);
}
