/* Tourism Content Uploader - Frontend Styles */

.tcu-upload-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.tcu-upload-container h2 {
    color: #0d9488;
    margin-bottom: 10px;
}

.tcu-upload-container > p {
    color: #666;
    margin-bottom: 30px;
}

/* Sections */
.tcu-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
.tcu-form-group {
    margin-bottom: 20px;
}

.tcu-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.tcu-form-group input[type="text"],
.tcu-form-group input[type="email"],
.tcu-form-group input[type="file"],
.tcu-form-group select,
.tcu-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.tcu-form-group input[type="text"]:focus,
.tcu-form-group input[type="email"]:focus,
.tcu-form-group select:focus,
.tcu-form-group textarea:focus {
    outline: none;
    border-color: #0d9488;
}

.tcu-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.tcu-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Buttons */
.tcu-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tcu-btn-primary {
    background-color: #0d9488;
    color: #fff;
}

.tcu-btn-primary:hover {
    background-color: #0a7c72;
}

.tcu-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Progress Bar */
.tcu-progress {
    width: 100%;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.tcu-progress-bar {
    height: 100%;
    background-color: #0d9488;
    transition: width 0.3s ease;
}

.tcu-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* Messages */
.tcu-message {
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
    display: none;
}

.tcu-message.tcu-success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.tcu-message.tcu-error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* Previous Uploads */
#tcu-previous-uploads h3 {
    margin-top: 0;
    color: #333;
}

.tcu-upload-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 10px;
}

.tcu-upload-info {
    flex: 1;
}

.tcu-upload-info strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.tcu-upload-meta {
    font-size: 12px;
    color: #666;
}

.tcu-upload-status span {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tcu-status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.tcu-status-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.tcu-status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Email Section */
#tcu-email-section {
    text-align: center;
}

#tcu-email-section input[type="email"] {
    max-width: 400px;
    margin: 0 auto 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .tcu-upload-container {
        padding: 10px;
    }

    .tcu-section {
        padding: 20px;
    }

    .tcu-upload-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .tcu-upload-status {
        margin-top: 10px;
    }
}
