/* ================================================
   PETROLMATE FEEDBACK SYSTEM STYLES
   Beautiful, minimalist feedback & bug report UI
   ================================================ */

/* Footer Styles */
.petrolmate-footer {
    margin-top: 60px;
    padding: 32px 20px;
    background: var(--surface, #ffffff);  /* Fallback to white */
    border-top: 2px solid var(--border, #e5e7eb);  /* Make border more visible */
    display: block !important;  /* Ensure it's always visible */
    position: relative;
    z-index: 1;  /* Above background elements */
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-section {
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.footer-keywords {
    font-size: 11px;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.footer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface-elevated);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.footer-action-btn .action-icon {
    font-size: 18px;
}

.footer-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-on-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-action-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.feedback-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.feedback-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.feedback-modal-content {
    background-color: var(--background);
    margin: 20px;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.feedback-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-on-primary);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.feedback-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.feedback-modal-body {
    padding: 28px;
    overflow-y: auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--surface-elevated);
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--background);
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.1);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* File Input Styles */
.file-input {
    display: none;
}

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

.file-input-label:hover {
    border-color: var(--primary);
    background: var(--surface-card);
}

.file-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.file-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.file-hint {
    font-size: 12px;
    color: var(--text-tertiary);
}

.screenshot-preview {
    margin-top: 16px;
    padding: 12px;
    background: var(--surface-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.screenshot-preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 4px;
    object-fit: cover;
}

.screenshot-preview .preview-info {
    flex: 1;
}

.screenshot-preview .preview-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.screenshot-preview .preview-size {
    font-size: 12px;
    color: var(--text-tertiary);
}

.screenshot-preview .remove-btn {
    background: var(--error);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.screenshot-preview .remove-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-on-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

/* Toast Notification */
.petrolmate-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: var(--surface-elevated);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 100000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.petrolmate-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.petrolmate-toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.petrolmate-toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.petrolmate-toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 20px;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-message h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.success-message p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 16px;
    }

    .footer-actions {
        width: 100%;
    }

    .footer-action-btn {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }

    .feedback-modal-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        height: 100%;
    }

    .feedback-modal-header {
        padding: 20px;
    }

    .feedback-modal-header h2 {
        font-size: 20px;
    }

    .feedback-modal-body {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }

    .footer-actions {
        flex-direction: column;
    }

    .footer-action-btn {
        width: 100%;
    }
}

/* Dark Mode Compatibility */
@media (prefers-color-scheme: dark) {
    .feedback-modal {
        background-color: rgba(0, 0, 0, 0.7);
    }
}
