* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Hanken Grotesk", sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F0F0F0;
    min-height: 100dvh;
}

.container {
    width: 100dvw;
    max-width: 960px;
    margin: 40px;
    height: 70dvh;
    border-radius: 40px;
    padding: 40px;
    background: #FFFFFF;
    box-shadow: 0px 0px 80px 0px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-container {
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container .logo {
    width: 60%;
    height: 100%;
    object-fit: contain;
}

.drag-area {
    width: 40%;
    height: 100%;
    background: #2B65FF;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: #FFFFFF;
}

/* smooth animation for drag-area */
.drag-area {
    transition: all 0.3s ease;
}

.drag-area:hover {
    background: #5596FF;
    /* border: 4px dashed #3A70FF; */
    cursor: pointer;
}

/* uploading animation (pulse) */
.uploading {
    animation: pulse 1s infinite;
}

/* upload result */
.upload-result {
    width: 40%;
    height: 100%;
    background: #2B65FF;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px;
}

.qr-code {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 10px;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upload-link {
    width: 100%;
    height: 12%;
    background: #FFFFFF;
    border-radius: 10px;
    border: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #2B65FF;
}

.upload-link .link {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 10px;
    border: none;
    padding: 10px;
    text-align: center;
}

.upload-link .copy-button {
    width: auto;
    height: 100%;
    aspect-ratio: 1/1;
    background: transparent;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
}

.upload-link .copy-button img {
    width: 50%;
    height: auto;
    object-fit: contain;
}

.upload-again {
    width: 100%;
    height: 10%;
    border-radius: 10px;
    border: none;
    color: #FFFFFF;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        background: #2B65FF;
    }
    50% {
        background: #5596FF;
    }
    100% {
        background: #2B65FF;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #FFFFFF;
    margin: 15% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.modal-content h3 {
    margin: 0 0 15px 0;
    color: #2B65FF;
    font-size: 18px;
    font-weight: 600;
}

.modal-content p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

.modal-close {
    background: #2B65FF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: #5596FF;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* mobile responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 95dvw;
        height: 95dvh;
        margin: 20px;
        padding: 20px;
    }

    .logo-container {
        width: 100%;
        height: 15%;
    }

    .drag-area {
        width: 100%;
        height: 85%;
    }

    .upload-result {
        width: 100%;
        height: 100%;
        padding: 20px;
        gap: 15px;
    }

    .text p {
        font-size: 16px;
    }

    .upload-link {
        width: 100%;
        height: auto;
        min-height: 50px;
        padding: 15px;
        font-size: 14px;
        gap: 15px;
    }

    .upload-link .link {
        width: 100%;
        font-size: 13px;
        padding: 0;
    }

    .upload-link .copy-button {
        width: 50px;
        height: 50px;
        min-width: 50px;
        background: #f5f5f5;
        border-radius: 8px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
    }

    .upload-link .copy-button:hover {
        background: #e0e0e0;
    }

    .upload-link .copy-button img {
        width: 20px;
        height: 20px;
    }

    .upload-again {
        width: 100%;
        height: auto;
        min-height: 40px;
        font-size: 20px;
        padding: 10px;
    }

    .qr-code {
        display: none;
    }

    .modal-content {
        margin: 25% auto;
        padding: 25px;
        width: 85%;
    }

    .modal-content h3 {
        font-size: 16px;
    }

    .modal-content p {
        font-size: 14px;
    }
}

.max-size {
    font-weight: 500;
    color: #2B65FF;
    background: #FFFFFF;
    padding: 5px 10px;
    border-radius: 50px;
    width: 100%;
    text-align: center;
}

.upload-info {
    font-weight: 500;
    border: 1px solid #FFFFFF;
    background: transparent;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 16px;
    width: 100%;
    text-align: center;
}