/* Feedback Page Styles */
.feedback-main {
    min-height: 100vh;
    padding: 6rem 0 4rem 0;
    background: var(--bg-primary);
}

.feedback-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feedback-header {
    text-align: center;
    margin-bottom: 3rem;
}

.feedback-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feedback-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.feedback-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .feedback-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Feedback Form */
.feedback-form-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow);
}

.feedback-form .form-group {
    margin-bottom: 1.5rem;
}

.feedback-form .form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.feedback-form .form-input,
.feedback-form .form-select,
.feedback-form .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

/* Default dropdown options styling - dark theme (default) */
.feedback-form .form-select option {
    background: #1a1a1a !important;
    color: #ffffff !important;
    padding: 0.5rem;
}

/* Light theme dropdown options - when body has data-theme="light" */
body[data-theme="light"] .feedback-form .form-select option {
    background: #ffffff !important;
    color: #1e293b !important;
}

/* Default dropdown styling - dark theme arrow */
.feedback-form .form-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Light theme arrow - when body has data-theme="light" */
body[data-theme="light"] .feedback-form .form-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'><path d='M7 10l5 5 5-5z'/></svg>");
}

.feedback-form .form-input:focus,
.feedback-form .form-select:focus,
.feedback-form .form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.feedback-form .form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-help {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    min-width: 120px;
}

/* Alternative Options */
.feedback-alternative {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.alternative-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.alternative-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alternative-title i {
    color: var(--primary);
}

.alternative-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.email-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.email-link:hover {
    background: rgba(59, 130, 246, 0.15);
    text-decoration: underline;
}

.copy-email-btn {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.copy-email-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.alternative-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-style: italic;
}

.feedback-tips {
    margin: 0;
    padding-left: 1.25rem;
}

.feedback-tips li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.success-message.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.success-message.fade-out .success-content {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

.success-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.email-content {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.email-content strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 1rem;
}

.email-content br + br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

/* Feedback Button (for other pages) */
.feedback-btn-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.feedback-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.feedback-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.feedback-btn i {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .feedback-btn-container {
        bottom: 1rem;
        right: 1rem;
    }
    
    .feedback-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* File Upload Styles */
.file-upload-container {
    position: relative;
}

.form-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.file-upload-text {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.file-upload-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.file-item-icon {
    font-size: 1.25rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.file-item-details {
    flex: 1;
    min-width: 0;
}

.file-item-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-size {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.file-item-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Mobile responsiveness for file upload */
@media (max-width: 768px) {
    .file-upload-label {
        padding: 1.5rem 1rem;
    }

    .file-upload-label i {
        font-size: 1.5rem;
    }

    .file-upload-text {
        font-size: 0.9rem;
    }

    .file-upload-hint {
        font-size: 0.75rem;
    }

    .file-item {
        padding: 0.5rem;
    }

    .file-item-info {
        gap: 0.5rem;
    }

    .file-item-icon {
        font-size: 1rem;
    }
}

/* Loading State */
.btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn.loading i.fa-spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Copy Success Animation */
.copy-success {
    animation: copySuccess 0.3s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: var(--success); color: white; }
    100% { transform: scale(1); }
}