* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: url('../assets/1-35par1-34.jpg') center center/cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    /* min-height: 100vh; */
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 100%;
    text-align: center;
    margin-bottom: 30px;
    /* background: rgba(255, 255, 255, 0.95); */
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

main {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

label span {
    font-size: 1.1rem;
}

input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

input[type="text"]:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.file-input-label {
    cursor: pointer;
    display: block;
    padding: 20px;
    border: 3px dashed #2196F3;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(33, 150, 243, 0.05);
    position: relative;
}

.file-input-label:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: #1976D2;
}

.file-input-label span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2196F3;
}

input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-info {
    margin-top: 8px;
    color: #666;
}

.file-preview {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.preview-item {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}

.preview-item .filename {
    font-size: 0.8rem;
    color: #666;
    word-break: break-all;
}

.preview-item .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

button {
    width: 100%;
    padding: 18px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

button:hover:not(:disabled) {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #21CBF3);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #2196F3;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.actions {
    text-align: center;
    margin-top: 20px;
}

footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 40px 20px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .file-preview {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .preview-item img,
    .preview-item video {
        height: 100px;
    }
}

@supports (-webkit-touch-callout: none) {
    input[type="file"] {
        -webkit-appearance: none;
    }
    
    .file-input-label {
        -webkit-tap-highlight-color: transparent;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
    input[type="file"] {
        font-size: 16px;
    }
}

