/* File: assets/css/frontend.css */

.kefvan-story-upload-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.kefvan-story-upload-form-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.kefvan-story-upload-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.kefvan-story-upload-form-wrapper h3 {
    text-align: center;
}

.kefvan-story-message-container {
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #c3e6cb;
}

.kefvan-story-upload-form .form-group {
    margin-bottom: 20px;
}

.kefvan-story-upload-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.kefvan-story-upload-form input[type="text"],
.kefvan-story-upload-form input[type="email"],
.kefvan-story-upload-form input[type="url"],
.kefvan-story-upload-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.kefvan-story-upload-form input[type="text"]:focus,
.kefvan-story-upload-form input[type="email"]:focus,
.kefvan-story-upload-form input[type="url"]:focus,
.kefvan-story-upload-form textarea:focus {
    border-color: #6c63ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.kefvan-story-upload-form textarea {
    height: 100px;
    resize: vertical;
}

.content-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.content-type-option {
    flex: 1;
    min-width: 150px;
    position: relative;
    display: block;
    padding: 12px 15px;
    background-color: #f7f7f7;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.content-type-option:hover {
    background-color: #f0f0f0;
}

.content-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.content-type-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #6c63ff;
}

.content-type-option input[type="radio"]:checked + span::before {
    content: "✓ ";
}

.content-type-option:has(input[type="radio"]:checked) {
    border-color: #6c63ff;
    background-color: rgba(108, 99, 255, 0.05);
}

.file-upload-container {
    display: flex;
    flex-direction: column;
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 20px;
    background-color: #f9f9f9;
    transition: all 0.3s;
}

.file-upload-container:hover {
    border-color: #6c63ff;
}

.file-upload-preview {
    margin-bottom: 15px;
    text-align: center;
}

.file-icon {
    font-size: 20px;
    margin-right: -1px;
    font-style: normal;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    margin: 10px auto;
    border-radius: 4px;
    display: block;
}

.file-upload-controls {
    text-align: center;
}

.file-upload-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c63ff;
    color: white !important;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.file-upload-button:hover {
    background-color: #5a52d5;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    overflow: hidden;
}

.file-restrictions {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    margin-bottom: 0;
}

.help-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
}

.terms-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-bottom: 8px;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
    position: relative;
}

.submit-button {
    background-color: #6c63ff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #5a52d5;
}

.submit-button:disabled {
    background-color: #b5b2e6;
    cursor: not-allowed;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    right: calc(50% - 40px);
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kefvan-story-upload-form-wrapper {
        padding: 20px 15px;
    }
    
    .content-type-option {
        min-width: 100%;
        box-sizing: border-box;
    }
}



.kefvan-qr-section {
  text-align: center;
  margin-top: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.kefvan-qr-section #qrCode {
  margin: 20px auto;
  max-width: 200px;
}
