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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    min-height: 100vh;
    position: relative;
}

/* Views */
.view {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease-in-out;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    padding: 40px 20px 30px;
    text-align: center;
}

.app-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    border: 3px solid rgba(16, 185, 129, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
    }
}

.app-title {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.app-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.year-label {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
}

/* Navigation Header */
.nav-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    padding-top: 60px;
    color: white;
}

.nav-header h2 {
    font-size: 28px;
    font-weight: 700;
    text-transform: capitalize;
}

.back-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.day-date-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* Content */
.content {
    padding: 0 20px 40px;
}

/* Months List */
.months-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.month-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(251, 146, 60, 0.1) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.month-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #10b981, #f59e0b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.6;
}

.month-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.4);
}

.month-card:hover::before {
    opacity: 1;
}

.month-card:active {
    transform: translateY(-2px) scale(1.01);
}

.month-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.month-info p {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.month-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
}

/* Days List */
.days-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-row {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.day-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.day-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.day-number.completed {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    border: 2px solid #10b981;
}

.day-number.incomplete {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.day-info {
    flex: 1;
}

.day-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.day-info p {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.day-info p.empty {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.day-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-icon {
    font-size: 24px;
}

.status-icon.completed {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    font-size: 28px;
}

.status-icon.incomplete {
    color: rgba(255, 255, 255, 0.4);
    font-size: 28px;
}

.chevron {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* Day Content */
.day-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
}

.status-section,
.activity-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Completion Button */
.completion-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(251, 146, 60, 0.4);
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.25) 0%, rgba(249, 115, 22, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(251, 146, 60, 0.3);
    position: relative;
}

.completion-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(251, 146, 60, 0.5);
    border-color: rgba(251, 146, 60, 0.6);
}

.completion-btn.completed {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-color: #10b981;
    border-width: 4px;
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.3);
    transform: scale(1.15);
    animation: completePulse 1.5s ease-in-out infinite;
}

@keyframes completePulse {

    0%,
    100% {
        box-shadow: 0 16px 48px rgba(16, 185, 129, 0.6), 0 0 60px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 20px 56px rgba(16, 185, 129, 0.8), 0 0 80px rgba(16, 185, 129, 0.5);
    }
}

.feito-text {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #fb923c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 10px rgba(251, 146, 60, 0.3);
}

.completion-btn.completed .feito-text {
    display: none;
}

.check-icon {
    position: absolute;
}

.check-icon.hidden {
    display: none;
}

/* Activity Input */
.activity-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    font-size: 16px;
    color: white;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

.activity-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.activity-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

/* Celebration */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: particle-animation 1s ease-out forwards;
}

@keyframes particle-animation {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .app-title {
        font-size: 32px;
    }

    .month-card {
        padding: 18px;
    }

    .month-info h3 {
        font-size: 22px;
    }
}

/* Hidden */
.hidden {
    display: none !important;
}