@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800;900&display=swap");

:root {
    --bg-dark: #0a0c1a;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Urbanist", sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-dark);
    color: #c9c9c9;
    overflow-x: hidden;
    position: relative;
}

.squares-background {
    height: 100vh;
    width: 100vw;
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 0;
    overflow: hidden;
}

.square {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
    position: absolute;
    transition: opacity .5s ease-in-out;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.square.filled {
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

@media (prefers-reduced-motion:reduce) {
    .square {
        transition: none!important;
    }
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
}

.container .wrapper {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.container .wrapper .doritus {
    display: flex;
    align-items: center;
    gap: -1rem;
    margin-bottom: 1rem;
}

.container .wrapper .doritus span {
    color: #fff;
    font-size: 3rem;
    font-weight: 500;
    background: linear-gradient(90deg, #3B82F6, #1D4ED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientAnimation-218135ab 5s ease infinite;
}

.container .wrapper .doritus img {
    width: 44px;
    transform: rotate(-30deg);
}

@keyframes gradientAnimation-218135ab {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    to {
        background-position: 0% 50%;
    }
}

.container .wrapper .form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.container .wrapper .form .form-control {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    gap: 0.25rem;
}

.container .wrapper .form .form-control label {
    color: #c9c9c9;
    font-size: 0.9rem;
    font-weight: 500;
}

.container .wrapper .form .form-control input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 12px;
    outline: none;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.container .wrapper .form .form-control input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(30, 30, 50, 0.8);
}

.container .wrapper .form .form-control input::placeholder {
    color: rgba(201, 201, 201, 0.6);
}

.toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 2.1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9c9c9;
    transition: color 0.3s ease;
}

.toggle-btn:hover {
    color: #3B82F6;
}

.toggle-btn i {
    font-size: 1rem;
}

.container .wrapper .form .form-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.container .wrapper .form .form-buttons button {
    width: 100%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.container .wrapper .form .form-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #5B52F0, #8B5CF6);
}

.container .wrapper .form .form-buttons button:active {
    transform: translateY(0);
}

.container .wrapper .form .form-buttons button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.container .wrapper .form .form-buttons button i {
    font-size: 1rem;
}

.credits-section {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(201, 201, 201, 0.7);
    gap: 0.5rem;
    z-index: 10;
    width: 90%;
}

.container .wrapper .credits {
    display: none;
}

.overlay, .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card, .modal-content {
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title, .modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

.card-title span, .modal-content h2 span {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.close-button i {
    font-size: 1.2rem;
    color: #c9c9c9;
}

.task-list-container {
    max-height: 50vh;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 10px;
}

.task-list-container::-webkit-scrollbar {
    width: 6px;
}
.task-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.task-list-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
    border-radius: 3px;
}
.task-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
}

.task-list-item {
    display: flex;
    align-items: center;
    background: rgba(30, 30, 50, 0.6);
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.task-list-item:hover {
    background-color: rgba(30, 30, 50, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}
.task-list-item input[type="radio"] {
    margin-right: 15px;
    min-width: 18px;
    height: 18px;
    accent-color: #6366f1;
}
.task-list-item label {
    flex-grow: 1;
    font-size: 1rem;
    color: #c9c9c9;
    cursor: pointer;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notifications-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
}

.Notificacao {
    width: 320px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(120%); 
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.Notificacao.show {
    opacity: 1;
    transform: translateX(0);
}
.Notificacao.fadeOut {
    opacity: 0;
    transform: translateX(120%);
}
.Notificacao p {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
    flex-grow: 1;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.progressbar {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    animation: progressAnimation 5s forwards;
    width: 100%;
}

@keyframes progressAnimation {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.modal-body {
    padding: 1rem 0;
}

.modal-body .time-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-body .time-input-group label {
    font-size: 1rem;
    color: #c9c9c9;
}

.modal-body .time-input-group input {
    width: 60px;
    padding: 0.5rem;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    text-align: center;
}

.task-list-checkbox {
    display: flex;
    align-items: center;
    background: rgba(30, 30, 50, 0.6);
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-list-checkbox:hover {
    background-color: rgba(30, 30, 50, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.task-list-checkbox input[type="checkbox"] {
    margin-right: 15px;
    min-width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

.task-list-checkbox label {
    flex-grow: 1;
    font-size: 1rem;
    color: #c9c9c9;
    cursor: pointer;
}

.modal-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.modal-buttons-group button {
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.modal-buttons-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.gradient-link span {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

.gradient-link span:hover {
    transform: scale(1.05);
}

.gradient-link {
    text-decoration: none;
}

.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.loading-content {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 350px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.loading-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #7C3AED);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.donation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.donation-modal-content {
    width: 100%;
    max-width: 500px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideUp 0.3s ease;
}

.donation-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    color: #c9c9c9;
}

.donation-close-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.donation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.donation-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.donation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3B82F6;
    margin: 0;
}

.donation-welcome h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.donation-welcome .highlight {
    background: linear-gradient(90deg, #8B5CF6, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.donation-support {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.support-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.support-header i {
    color: #EF4444;
    font-size: 1.2rem;
}

.support-header .highlight {
    background: linear-gradient(90deg, #8B5CF6, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.support-description {
    color: rgba(201, 201, 201, 0.8);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.donation-goal {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.goal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.goal-meta {
    color: rgba(201, 201, 201, 0.7);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.progress-container {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #3B82F6);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 43%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.current-amount {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.goal-amount {
    color: rgba(201, 201, 201, 0.7);
    font-size: 0.95rem;
}

.progress-percentage {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(201, 201, 201, 0.8);
    margin-bottom: 0.25rem;
}

.progress-deadline {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(201, 201, 201, 0.6);
}

.donation-button {
    width: 100%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.donation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #5B52F0, #8B5CF6);
}

.donation-button i {
    color: #EF4444;
}

@media (max-width: 768px) {
    .container .wrapper {
        padding: 2rem 1.5rem;
    }

    .container .wrapper .doritus span {
        font-size: 2.5rem;
    }

    .container .wrapper .doritus img {
        width: 38px;
    }
    
    .donation-modal-content, .card, .modal-content {
        padding: 1.5rem;
    }

    .notifications-container {
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .container .wrapper {
        padding: 1.5rem 1rem;
        border-radius: 24px;
    }

    .container .wrapper .doritus span {
        font-size: 2.2rem;
    }

    .container .wrapper .doritus img {
        width: 34px;
    }

    .container .wrapper .form .form-control input {
        padding: 0.7rem 2.5rem 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .toggle-btn {
        top: 1.95rem;
    }

    .container .wrapper .form .form-buttons button {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }

    .credits-section {
        font-size: 0.8rem;
    }

    .card, .modal-content {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .card-title, .modal-content h2 {
        font-size: 1.2rem;
    }

    .task-list-item label, .task-list-checkbox label {
        font-size: 0.9rem;
    }

    .notifications-container {
        bottom: 10px;
        right: 10px;
    }

    .Notificacao {
        width: 280px;
        padding: 0.9rem;
    }

    .Notificacao p {
        font-size: 0.85rem;
    }

    .donation-modal-content {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .donation-title {
        font-size: 1.3rem;
    }
    
    .donation-welcome h3 {
        font-size: 1.1rem;
    }

    .support-header {
        font-size: 1rem;
    }

    .support-description {
        font-size: 0.9rem;
    }

    .goal-title {
        font-size: 1rem;
    }
}