@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');


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

svg {
    pointer-events: none;
}

.main-container {
    width: 90vw;
    max-width: 900px;
    margin: auto;
    margin-top: .4rem;
    background-color: white;
    position: relative;
    display: flex;
    gap: 2rem;
    padding: 30px;
    border-radius: 12px;
    justify-content: space-between;

    box-shadow: 0 4px 35px rgba(0, 0, 0, 0.2), 0 1px 20px rgba(0, 0, 0, 0.1);
}

.drag-area {
    margin: 0;
    border: 2px dashed gray;
    padding: 0.5rem;
    border-radius: 8px;
    width: 480px;
    height: 520px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drag-text {
    font-size: 1rem;
    font-weight: bold;
    padding-bottom: 30px;
    text-align: center;
}

.description-area {
    width: 330px;
    height: 520px;
}

.title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.description-area p {
    font-size: .9rem;
    margin-bottom: 8px;
}

.selected-files-area {
    border-radius: 8px;
    width: 480px;
    height: 520px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.selected-files-area ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: 340px;
    margin: 0 auto;
    padding: 20px;
    overflow: auto;
    border-radius: 8px;
    background-color: #F0F0F1;
}

.selected-files-area ul::-webkit-scrollbar {
    width: 5px; 
    background: transparent;
}

.selected-files-area ul::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px; 
}

.selected-files-area li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.selected-files-area li div {
    display: flex;
    align-items: center;
}

.selected-files-area svg {
    height: 30px;
    width: auto;
}

.cancel-file {
    cursor: pointer;
}

.cancel-file svg {
    height: 20px;
    width: auto;
}

.cloud-icon {
    height: 80px;
    width: auto;
}

.add-size-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.add-size-container div {
    display: flex;
    align-items: center;
}

.add-size-container > div:first-child {
    font-weight: bold;
    cursor: pointer;
}

.add-size-container > div:nth-child(2) {
    font-size: 0.8rem;
}

.add-size-container svg {
    height: 28px;
    width: auto;
    border-width: 2px;
    border-style: solid;
    border-radius: 50%;
    padding: 2px;
    margin-right: 5px;
}


.select-file-button {
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    font-size: 1.1rem;
    color: white;
}

input[type='file'] {
    display: none;
}

.input-section {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    font-size: .85rem;
    padding-top: 10px;
    height: 150px;
}

.input-section-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message-input {
    position: absolute;
    top: 32px;
    color: #dc2626;
    font-size: .75rem;
}

.error-message-password {
    position: absolute;
    top: 69px;
    color: #dc2626;
    font-size: .75rem;
}

.file-info-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    margin-left: 9px;
    max-width: 340px;
}

.file-info-container > :nth-child(1) {
    max-width: 300px;
    word-wrap: break-word;
    word-break: break-all;
    font-size: .85rem;
    font-weight: 500;
}

.file-info-container > :nth-child(2) {
    font-size: .75rem;
    font-weight: 300;
}

#uploadButton {
    border-radius: 5px;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 0;
    font-size: 1rem;
    margin-top: auto;
}


input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease-in-out;
    position: relative;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide spinner buttons for Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.user-input {
    padding: 2px 8px;
    border-radius: 3px;
    border-width: 1px;
    border-style: solid;
    width: 60px;
}

.user-input:disabled {
    color: #f5f5f5;           
    background-color: #f5f5f5; 
    border-color: #f5f5f5;
}

.expire-container {
    margin-bottom: 5px;
}


input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: -0.45px;
    left: 4px;  /* Adjusted for center positioning */
    width: 5.4px;
    height: 10.8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmark 0.2s ease-in-out;
  }
  
  @keyframes checkmark {
    0% {
      height: 0;
      width: 0;
      opacity: 0;
    }
    30% {
      height: 12px;
      width: 0;
      opacity: 1;
    }
    100% {
      height: 12px;
      width: 6px;
      opacity: 1;
    }
}

#password {
    width: 180px;
}


 .upload-loader {
            position: relative;
            width: 100px;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .upload-icon {
            width: 64px;
            height: 64px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            position: relative;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            transition: all 0.3s ease;
            animation: iconPulse 2.5s ease-in-out infinite;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Secondary Arrow Elements */
        .arrow-accent {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 16px;
            height: 16px;
        }

        .arrow-accent::before {
            content: '';
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 2px;
            height: 8px;
            background: rgba(59, 130, 246, 0.6);
            border-radius: 1px;
            animation: accentPulse 2.5s ease-in-out infinite;
        }

        .arrow-accent::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-bottom: 8px solid rgba(59, 130, 246, 0.6);
            animation: accentPulse 2.5s ease-in-out infinite;
        }

        @keyframes arrowFloat {
            0%, 100% { 
                transform: translate(-50%, -50%) translateY(0);
                opacity: 1;
            }
            50% { 
                transform: translate(-50%, -50%) translateY(-3px);
                opacity: 0.95;
            }
        }

        @keyframes ringRotate {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        @keyframes packetFlow {
            0% { 
                opacity: 0; 
                transform: translateY(15px) scale(0.5) rotate(0deg);
            }
            20% { 
                opacity: 1; 
                transform: translateY(0) scale(1) rotate(180deg);
            }
            80% { 
                opacity: 1; 
                transform: translateY(-15px) scale(0.8) rotate(360deg);
            }
            100% { 
                opacity: 0; 
                transform: translateY(-30px) scale(0.3) rotate(540deg);
            }
        }

        @keyframes rippleExpand {
            0% {
                width: 20px;
                height: 20px;
                opacity: 0.8;
            }
            50% {
                width: 60px;
                height: 60px;
                opacity: 0.3;
            }
            100% {
                width: 80px;
                height: 80px;
                opacity: 0;
            }
        }

        @keyframes accentPulse {
            0%, 100% { 
                opacity: 0.3;
                transform: translate(-50%, -50%) scale(0.8);
            }
            50% { 
                opacity: 0.8;
                transform: translate(-50%, -50%) scale(1.1);
            }
        }

        .upload-trail:nth-child(2) {
            animation-delay: 0.3s;
            top: 75%;
        }

        .upload-trail:nth-child(3) {
            animation-delay: 0.6s;
            top: 80%;
        }

        @keyframes trailEffect {
            0% { 
                opacity: 0; 
                transform: translateX(-50%) translateY(8px) scale(0.5);
            }
            30% { 
                opacity: 0.8; 
                transform: translateX(-50%) translateY(0) scale(1);
            }
            70% { 
                opacity: 0.4; 
                transform: translateX(-50%) translateY(-8px) scale(0.8);
            }
            100% { 
                opacity: 0; 
                transform: translateX(-50%) translateY(-16px) scale(0.3);
            }
        }

        .upload-progress {
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: #e5e7eb;
            border-radius: 2px;
            overflow: hidden;
        }

        .upload-progress::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 33%;
            background: linear-gradient(90deg, #4E4E4F, #4E4E4F);
            border-radius: 2px;
            animation: progressSlide 2.5s ease-in-out infinite;
        }

        @keyframes iconPulse {
            0%, 100% { 
                transform: scale(1); 
                border-color: #e5e7eb;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            }
            50% { 
                transform: scale(1.05); 
                border-color: #4E4E4F;
                box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
            }
        }

        @keyframes progressSlide {
            0% { transform: translateX(-100%); }
            70% { transform: translateX(280%); }
            100% { transform: translateX(280%); }
        }


.upload-svg {
    height: 35px;
    width: auto;
    fill: #4E4E4F;
}

.upload-animation {
    margin: 0;
    border: 2px solid gray;
    width: 478.84px;
    height: 520px;
    border-radius: 8px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-text {
    font-weight: 450;
    font-size: 1.1rem;
}


/* Modal */
.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    gap: 30px;
}

.modal-button {
    padding: 5px 10px;
    border-radius: 5px;
    outline: none;
    border: none;
    cursor: pointer;
}

.password-group {
    position: relative;
    top: 6px;
}

.error-modal {
    position: absolute;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 840px;
    margin: 0;
    height: 520px;
    gap: 20px;
    background-color: white;
}

.error-modal-text {
    font-weight: bold;
    font-size: 1.6rem;
}

.error-modal-button {
    padding: 8px 80px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    outline: none;
    color: white;
}

.success-modal {
    left: 0;
    position: absolute;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 840px;
    margin: 0;
    height: 520px;
    width: 100%;
    gap: 4px;
    background-color: white;
    border-radius: 12px;
}

.success-modal-text {
    font-weight: bold;
    font-size: 1.5rem;
}

.success-modal-description {
    font-size: .8rem;
    font-weight: 300;
}

.success-modal-input {
    margin-top: 10px;
    width: 350px;
    padding: 5px;
    margin-bottom: 10px;
}

.success-modal-copy-button {
    width: 350px;
    padding: 7px 0;
    border-radius: 5px;
    outline: none;
    border: none;
    cursor: pointer;
    color: white;
    margin-bottom: 5px;
    font-size: 1rem;
}

.success-modal-ok-button {
    background-color: white;
    outline: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: .9rem;
}


.password-protection-text {
    cursor: pointer;
}

.checkbox-group {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}


@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }

    .title {
        text-align: center;
        font-size: 1.5rem;
    }

    .description-area p {
        text-align: center;
    }

    .drag-area {
        height: 330px;
        padding: .3rem;
    }

    .description-area {
        height: 100%;
    }

    .drag-area, .selected-files-area, .description-area {
        width: 100%;
    }

    .description-area {
        margin-top: 1rem;
    }

    .error-modal {
        height: 30vh;
        width: 95vw;
    }

    .select-file-button {
        font-size: .9rem;
    }

    .password-protection-text {
        white-space: nowrap;
        font-size: .7rem;
    }

    #password {
        width: 100%;
    }

    .drag-text {
        padding-bottom: 10px;
    }

    .file-info-container {
        font-size: .8rem;
    }

    .selected-files-area li {
        padding: .6rem;
    }

    .select-more-files {
        font-size: .9rem;
    }

    .expire-container {
        font-size: .7rem;
        white-space: nowrap;
    }

    #downloads, #hours {
        font-size: .7rem;
        width: 40px;
    }

    .file-info-container >:nth-child(1) {
        font-size: .75rem;
    }

    .file-info-container >:nth-child(2) {
        font-size: .65rem;
    }

    .success-modal-input, .success-modal-copy-button {
        width: 80vw;
    }

    .upload-animation {
        width: 100%;
    }

    .success-modal {
        height: 100%;
    }
}