﻿@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.content {
    padding: 10px;
}

.upload-zone {
    border: 3px dashed #ff9c07;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    background: white;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

    .upload-zone::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,156,7,0.05) 0%, rgba(30,58,95,0.05) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .upload-zone:hover::before {
        opacity: 1;
    }

    .upload-zone:hover {
        border-color: #1e3a5f;
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(255,156,7,0.2);
    }

    .upload-zone.dragover {
        border-color: #1e3a5f;
        background: linear-gradient(135deg, rgba(255,156,7,0.1) 0%, rgba(30,58,95,0.1) 100%);
        transform: scale(1.02);
    }

    .upload-zone.has-file {
        border-color: #1e3a5f;
        background: linear-gradient(135deg, rgba(255,156,7,0.08) 0%, rgba(30,58,95,0.08) 100%);
    }

.upload-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.upload-zone p {
    color: #1e3a5f;
    font-size: 16px;
    margin: 10px 0;
    position: relative;
    z-index: 1;
}

    .upload-zone p strong {
        color: #ff9c07;
    }

.btn-select {
    background: linear-gradient(135deg, #ff9c07 0%, #ffb547 100%);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,156,7,0.3);
    position: relative;
    z-index: 1;
}

    .btn-select:hover {
        background: linear-gradient(135deg, #ffb547 0%, #ff9c07 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255,156,7,0.4);
    }

.file-preview {
    background: white;
    border: 2px solid #1e3a5f;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    display: none;
    animation: slideIn 0.4s ease;
}

    .file-preview.show {
        display: block;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f9f9f9;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    background: linear-gradient(135deg, #ff9c07 0%, #ffb547 100%);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(255,156,7,0.3);
}

.file-details h4 {
    color: #1e3a5f;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.file-details span {
    color: #666;
    font-size: 13px;
}

.btn-remove {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-remove:hover {
        background: #ff3838;
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(255,71,87,0.3);
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        color: #1e3a5f;
        font-size: 15px;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 14px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 15px;
        font-family: inherit;
        transition: all 0.3s ease;
        background: #f9f9f9;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #ff9c07;
            background: white;
            box-shadow: 0 0 0 4px rgba(255,156,7,0.1);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }

.btn-upload {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8f 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 25px;
    font-size: 17px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(30,58,95,0.3);
}

    .btn-upload:hover:not(:disabled) {
        background: linear-gradient(135deg, #2d5a8f 0%, #1e3a5f 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(30,58,95,0.4);
    }

    .btn-upload:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.success-message,
.error-message {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    display: none;
    animation: slideIn 0.4s ease;
}

.success-message {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
}

.upload-file-zone .error-message {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    color: white !important;
}

.success-message.show,
.error-message.show {
    display: block;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
