* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background-image: url("/img/bg.webp");
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(15px);
    -webkit-backdrop-filter: saturate(180%) blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 3px dashed #b4b4b4;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.upload-area.drag-over {
    border-color: #04479E;
    background: rgba(107, 138, 255, 0.1);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    color: #04479E;
    margin-bottom: 10px;
}

.upload-button {
    background: #04479E;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.upload-button:hover {
    background: #5470cc;
}

.file-info {
    color: #666;
    font-size: 14px;
}

.upload-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

input[type="text"],
textarea {
    background: rgba(255, 255, 255, 0.4);
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #04479E;
    outline: none;
}

textarea {
    height: 100px;
    resize: vertical;
}

.selected-files {
    margin: 20px 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    margin-bottom: 10px;
    gap: 15px;
}

.file-name-container {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-icon {
    width: 20px;
    height: 20px;
}

.remove-icon {
    width: 18px;
    height: 18px;
    transition: opacity 0.2s ease;
}

.remove-icon:hover {
    opacity: 0.8;
}

.file-name-container span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size-container {
    display: flex;
    align-items: center;
    min-width: fit-content;
}

.file-size-tag {
    color: #747474;
    padding: 2px 8px;
    border: 1px solid #747474;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}

.file-action-container {
    min-width: fit-content;
}

.file-item button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 400px) {
    .file-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .file-size-container {
        justify-content: flex-start;
    }

    .file-action-container button {
        width: 100%;
    }
}

.upload-progress {
    margin: 20px 0;
}

.progress-bar {
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #25D366;
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    color: #666;
}

.submit-button {
    background: #04479E;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #16a34a;
}

.success-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.success-content,
.error-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.success-icon,
.error-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.success-icon {
    color: #25D366;
}

.error-icon {
    color: #ff6b6b;
}

.success-content h3,
.error-content h3 {
    margin-bottom: 10px;
}

.success-content h3 {
    color: #25D366;
}

.error-content h3 {
    color: #ff6b6b;
}

.error-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.error-button:hover {
    background: #ff5252;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .upload-area {
        padding: 20px 10px;
    }

    .upload-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}