/* Upload Page Styles - ModBay Inspired Multi-Step Form */

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: white;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.upload-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.upload-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-icon {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.upload-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Layout */
.upload-content {
    display: grid;
    gap: 40px;
}

/* Guidelines Section */
.guidelines-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guidelines-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.guideline-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guideline-icon {
    width: 24px;
    height: 24px;
    fill: #4CAF50;
    flex-shrink: 0;
    margin-top: 2px;
}

.guideline-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
}

.guideline-item p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Form Section */
.upload-form-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Login Required Section */
.login-required-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
    width: 100%;
}

.login-prompt-card {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.lock-icon {
    width: 64px;
    height: 64px;
    fill: #f1d400;
    margin-bottom: 20px;
}

.login-prompt-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #f1d400;
}

.login-prompt-card p {
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.login-prompt-btn {
    background: linear-gradient(135deg, #f1d400, #e6c200);
    color: #1a1a1a;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.1);
}

.login-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(241, 212, 0, 0.4);
    background: linear-gradient(135deg, #e6c200, #d9b300);
}

.register-text {
    font-size: 0.9rem !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.register-text a {
    color: #f1d400;
    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

/* Step Progress */
.upload-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.upload-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.step.completed .step-number {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.step span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: color 0.3s ease;
}

.step.active span,
.step.completed span {
    color: white;
    font-weight: 500;
}

/* Form Steps */
.form-step {
    display: none !important;
    animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(76, 175, 80, 0.3);
}

.step-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Form Controls */
.form-group {
    margin-bottom: 25px;
    visibility: visible !important;
    opacity: 1 !important;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4CAF50;
    font-size: 0.95rem;
    visibility: visible !important;
}

.label-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.form-input, 
.form-textarea, 
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.form-input:focus, 
.form-textarea:focus, 
.form-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder, 
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-textarea.large {
    min-height: 200px;
}

.form-select {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-select option {
    background: #2d2d2d;
    color: white;
    padding: 10px;
}

.form-select[multiple] {
    min-height: 120px;
    padding: 8px;
}

.form-select[multiple] option {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 2px 0;
}

.form-select[multiple] option:checked {
    background: #4CAF50 !important;
    color: white !important;
}

.form-select[multiple] option:hover {
    background: rgba(76, 175, 80, 0.3);
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* File Upload */
.file-input-wrapper {
    position: relative;
    width: 100%;
}

.file-input {
    padding: 40px 20px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.file-input:hover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.file-input input {
    display: none;
}

.upload-icon {
    width: 48px;
    height: 48px;
    fill: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

/* Image Preview */
.images-preview {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.image-preview-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(244, 67, 54, 0.8);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-image-btn:hover {
    background: rgba(244, 67, 54, 1);
    transform: scale(1.1);
}

.remove-image-btn .btn-icon {
    width: 14px;
    height: 14px;
}

.image-filename {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Thumbnail Preview */
.thumbnail-preview {
    margin-top: 15px;
    position: relative;
    max-width: 200px;
}

.thumbnail-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.remove-thumbnail-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(244, 67, 54, 0.8);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-thumbnail-btn:hover {
    background: rgba(244, 67, 54, 1);
    transform: scale(1.1);
}

.remove-thumbnail-btn .btn-icon {
    width: 14px;
    height: 14px;
}

.file-input p {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: white;
}

.file-input small {
    color: rgba(255, 255, 255, 0.7);
}

/* Review Section */
.review-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #4CAF50;
}

.review-preview .review-item:not(:last-child) {
    margin-bottom: 15px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.review-value {
    color: white;
    text-align: right;
    /* max-width: 60%; */
}

/* Terms Section */
.terms-section {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #4CAF50;
    background: #4CAF50;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label a {
    color: #4CAF50;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Navigation */
.form-navigation {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
    min-height: 60px;
}

.nav-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.nav-btn.show {
    display: inline-flex;
}

.nav-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    min-height: 44px;
    min-width: 100px;
}

.nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(76, 175, 80, 0.4);
}

.nav-btn.secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 44px;
    min-width: 100px;
}

.nav-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
    display: none;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Messages */
.success-message, 
.error-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
    font-weight: 500;
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ff5252;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-container {
        padding: 15px;
    }
    
    .upload-header {
        padding: 30px 20px;
    }
    
    .upload-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .upload-form-section {
        padding: 25px 20px;
    }
    
    .guidelines-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .step {
        flex: none;
        min-width: 120px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .file-input {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .upload-steps::before {
        display: none;
    }
    
    .upload-steps {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
    
    .step {
        margin-bottom: 15px;
    }
}
