
.feedback-auth-section {
    background: var(--gradient-primary);
    padding: var(--space-2xl);
    margin-bottom: 0;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--blur-amount));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

}

.feedback-auth-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px var(--shadow-md);
}

.auth-content {
    position: relative;
    z-index: 2;
}

.discord-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--blur-amount));
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0 0 var(--space-sm) 0;
    font-weight: 700;
    color: white;
}

.auth-subtitle {
    margin: 0 0 var(--space-xl) 0;
    opacity: 0.9;
    font-size: 1.1rem;
    color: white;
}

/* Discord Login Button */
.discord-login-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--gradient-glass);
    backdrop-filter: blur(var(--blur-amount));
    color: white;
    padding: var(--space-lg) var(--space-2xl);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.discord-login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.5);
}

.discord-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.discord-login-btn:hover::before {
    left: 100%;
}

.auth-description {
    margin-top: var(--space-lg);
    opacity: 0.8;
    font-size: 0.9rem;
    color: white;
}

/* User Profile Display */
.user-profile {
    display: none;
    background: var(--gradient-glass);
    backdrop-filter: blur(var(--blur-amount));
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--space-xl);
}

.user-profile.show {
    display: block;
    animation: slideIn 0.3s ease;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-details h3 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.user-details p {
    margin: 4px 0 0 0;
    opacity: 0.8;
    font-size: 0.9rem;
    color: white;
}

.user-permissions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.permission-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-md);
    border-radius: 16px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.logout-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===================================================
   2. LOADING AND ERROR STATES
   =================================================== */

.feedback-loading {
    display: none;
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-secondary);
}

.feedback-loading.show {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-lg);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.feedback-error-message {
    background: linear-gradient(135deg, var(--accent-danger), #dc2626);
    color: white;
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: 0;
    display: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-error-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px var(--shadow-md);
}

.feedback-error-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.feedback-error-message h3,
.feedback-error-message strong {
    margin: 0 0 var(--space-sm) 0;
}

.feedback-error-message p {
    margin: 0;
    opacity: 0.9;
}

.error-help {
    margin-top: var(--space-md) !important;
}

.error-help a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.error-help a:hover {
    color: white;
}

/* ===================================================
   3. FEEDBACK FORM SECTION
   =================================================== */

.feedback-form-section {
    background: var(--bg-secondary);
    padding: var(--space-2xl);
    border: 1px solid var(--border-color);
    display: none !important;
    transition: var(--transition-normal);
}

.feedback-form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px var(--shadow-md);
}

.feedback-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.feedback-form-section:hover::before {
    opacity: 1;
}

.feedback-form-section.show {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

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

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.discord-verified {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--accent-tertiary);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===================================================
   4. FEEDBACK TYPE SELECTION
   =================================================== */

.feedback-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.feedback-type-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feedback-type-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-glow);
}

.feedback-type-card.selected {
    border-color: var(--accent-primary);
    background: rgba(96, 165, 250, 0.05);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.feedback-type-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.feedback-type-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
    font-size: 1rem;
}

.feedback-type-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ===================================================
   5. FORM ELEMENTS
   =================================================== */

.feedback-form:not(.active) {
    display: none;
}

.feedback-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Ensure success message is visible even when form is hidden */
.feedback-messages-global .feedback-success-message.show {
    display: block !important;
}

/* Add some spacing between success message and form when both are visible */
.feedback-messages-global .feedback-success-message.show + .feedback-form.active {
    margin-top: 1rem;
}

.feedback-guidelines {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.feedback-guidelines h4 {
    margin: 0 0 var(--space-md) 0;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.feedback-guidelines ul {
    margin: 0;
    padding-left: 20px;
}

.feedback-guidelines li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-group {
    margin-bottom: var(--space-xl);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    background: var(--bg-quaternary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.character-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

.character-count.warning {
    color: var(--accent-secondary);
}

.character-count.error {
    color: var(--accent-danger);
}


/* ===================================================
   6. MESSAGES AND SUBMIT SECTION
   =================================================== */

.feedback-messages {
    margin: var(--space-xl) 0;
}

.feedback-messages-global {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}


.feedback-messages-global .feedback-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}


.feedback-messages-global .feedback-success-message.show {
    transform: translateY(0);
    opacity: 1;
}

.feedback-success-message.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 100 !important;
}

.success-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.success-icon {
    font-size: 1.5rem;
    animation: bounceIn 0.5s ease;
}

.success-header h3 {
    color: #155724;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.success-body {
    color: #155724;
    line-height: 1.5;
}

.success-body p {
    margin: 0 0 1rem 0;
}

.issue-details {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.issue-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;

    min-height: 36px;
    height: 36px;
    line-height: 1;
}

.issue-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.external-link-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

.success-note {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 0 !important;
}


.feedback-form-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.feedback-form-error.show {
    transform: translateY(0);
    opacity: 1;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 1.5rem;
    animation: shake 0.5s ease;
}

.error-header strong {
    color: #721c24;
    font-size: 1.1rem;
}

.error-body {
    color: #721c24;
    line-height: 1.5;
}

.error-body p {
    margin: 0 0 0.75rem 0;
}

.error-details {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin: 0.75rem 0;
    border: 1px solid rgba(220, 53, 69, 0.2);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.error-help {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 0 !important;
}

/* Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

/* Dark mode support (if you have it) */
@media (prefers-color-scheme: dark) {
    .feedback-success-message {
        background: linear-gradient(135deg, #1e4620 0%, #2d5a2f 100%);
        border-color: #28a745;
        color: #c3e6cb;
    }

    .success-header h3,
    .success-body {
        color: #c3e6cb;
    }

    .issue-details {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(40, 167, 69, 0.3);
    }

    .feedback-form-error {
        background: linear-gradient(135deg, #4d1319 0%, #5a1e24 100%);
        border-color: #dc3545;
        color: #f5c6cb;
    }

    .error-header strong,
    .error-body {
        color: #f5c6cb;
    }

    .error-details {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(220, 53, 69, 0.3);
    }

    .feedback-messages-global .feedback-success-message {
        background: linear-gradient(135deg, #1e4620 0%, #2d5a2f 100%);
        border-color: #28a745;
        color: #c3e6cb;
    }

    .feedback-messages-global .success-header h3,
    .feedback-messages-global .success-body {
        color: #c3e6cb;
    }

    .feedback-messages-global .issue-details {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(40, 167, 69, 0.3);
    }
}


.submit-section {
    background: var(--bg-tertiary);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
}

.feedback-submit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px var(--shadow-glow);
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
}

.feedback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-glow);
}

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

.feedback-submit-btn:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.feedback-submit-btn.loading {
    pointer-events: none;
}

.feedback-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-note {
    margin-top: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================================================
   7. RESPONSIVE DESIGN
   =================================================== */

@media (max-width: 768px) {
    .feedback-auth-section,
    .feedback-form-section {
        padding: var(--space-xl);
    }

    .feedback-types {
        grid-template-columns: 1fr;
    }


    .form-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .user-permissions {
        justify-content: center;
    }

    .discord-login-btn {
        padding: var(--space-md) var(--space-xl);
        font-size: 1rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .feedback-auth-section,
    .feedback-form-section {
        padding: var(--space-lg);
    }

    .feedback-types {
        gap: var(--space-md);
    }

    .feedback-type-card {
        padding: var(--space-lg);
    }

    .feedback-auth-section.is-last,
    .feedback-error-message.is-last,
    .feedback-form-section.is-last,
    .feedback-sub-tabs.is-last {

        border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    }

    .my-feedback-section.is-last,
    .community-feedback-section.is-last,
    .sub-tab-content.is-last {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
}

/* ===================================================
   8. DARK/LIGHT THEME COMPATIBILITY
   =================================================== */

[data-theme="light"] .feedback-auth-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #6366f1 100%);
    color: white;
}

[data-theme="light"] .auth-content {
    color: white;
}

[data-theme="light"] .auth-title {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .auth-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .auth-description {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .discord-login-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .discord-login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
    border-color: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .user-profile {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .user-profile.show {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .user-details h3 {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .user-details p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .permission-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .logout-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white !important;
}

[data-theme="light"] .logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: white !important;
}

[data-theme="light"] .discord-logo {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

[data-theme="light"] .feedback-auth-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Enhanced focus states for light theme */
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus,
[data-theme="light"] .form-select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ===================================================
   9. ANIMATIONS AND MICRO-INTERACTIONS
   =================================================== */

.feedback-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transition: left 0.5s ease;
}

.feedback-type-card:hover::before {
    left: 100%;
}

.feedback-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.feedback-submit-btn:hover::before {
    left: 100%;
}

/* Form validation states */
.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: var(--accent-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success,
.form-textarea.success,
.form-select.success {
    border-color: var(--accent-tertiary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary, #ffffff);
    font-size: 0.95rem;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.2));
    border-radius: 8px;
    background: var(--input-background, rgba(255, 255, 255, 0.05));
    color: var(--text-primary, #ffffff);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-primary, #007acc);
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}


/* Enhanced guidelines styling */
.feedback-guidelines {
    background: var(--card-background, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.feedback-guidelines h4 {
    margin: 0 0 12px 0;
    color: var(--accent-primary, #007acc);
    font-size: 1rem;
}

.feedback-guidelines ul {
    margin: 0;
    padding-left: 20px;
}

.feedback-guidelines li {
    margin-bottom: 6px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    line-height: 1.4;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .feedback-types {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feedback-type-card {
        padding: 16px;
    }

    .feedback-type-icon {
        font-size: 1.5rem;
    }

    .feedback-type-title {
        font-size: 1.1rem;
    }

    .feedback-type-desc {
        font-size: 0.85rem;
    }

    .feedback-auth-section.is-last,
    .feedback-error-message.is-last,
    .feedback-form-section.is-last,
    .feedback-sub-tabs.is-last {
        border-radius: 0 0 var(--radius-xl) var(--radius-xl) !important;
    }

    /* Ensure mobile sections don't have conflicting border-radius */
    .feedback-auth-section,
    .feedback-form-section,
    .feedback-error-message {
        border-radius: 0 !important;
    }
}

/* Improved submit button */
.feedback-submit-btn {
    background: linear-gradient(135deg, var(--accent-primary, #007acc), var(--accent-secondary, #0066cc));
    border: none;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feedback-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 122, 204, 0.3);
}

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

.feedback-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Set the bottom corners rounded to the last active section */

.feedback-auth-section.is-last,
.feedback-error-message.is-last,
.feedback-form-section.is-last,
.feedback-sub-tabs.is-last {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}


/* ============================
   FILE UPLOAD STYLES
   ============================*/

:root {
    /* Text sizes */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */

    /* Spacing */
    --space-xs: 0.25rem; /* 4px */
    --space-sm: 0.5rem; /* 8px */
    --space-md: 1rem; /* 16px */
    --space-lg: 1.5rem; /* 24px */
    --space-xl: 2rem; /* 32px */

    /* Border radius */
    --radius-sm: 0.25rem; /* 4px */
    --radius-md: 0.5rem; /* 8px */
    --radius-lg: 0.75rem; /* 12px */

    /*!* Colors *!*/
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Surface colors */
    --surface-elevated: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --surface-subtle: rgba(0, 0, 0, 0.2);

    /* Border colors */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    /* Status colors */
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --info-dark: #2980b9;
    --accent-primary-dark: #0056b3;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);

    /* Error Colors */
    --error-color: #e74c3c;
    --error-color-hover: #c0392b;
    --error-background: rgba(231, 76, 60, 0.1);

    /* Success Colors */
    --success-color-hover: #229954;

    /* Input States */
    --input-background: rgba(255, 255, 255, 0.05);
    --input-background-hover: rgba(255, 255, 255, 0.08);

    /* Border Colors */
    --border-color-dark: #444;

    /* Card Backgrounds */
    --card-background-dark: #2a2a2a;
    --card-background-hover-dark: #333;

    /* Platform Color (fallback - overridden per platform) */
    --platform-color: #3b82f6;
}

.file-upload-section {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(139, 69, 19, 0.02);
    border: 1px solid rgba(139, 69, 19, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.file-upload-section .form-label {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-info {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 400;
}


/* Drop Zone Styles */
.file-drop-zone {
    position: relative;
    border: 2px dashed rgba(139, 69, 19, 0.4);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    background: rgba(139, 69, 19, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-drop-zone:hover {
    border-color: rgba(139, 69, 19, 0.6);
    background: rgba(139, 69, 19, 0.06);
    transform: translateY(-2px);
}

.file-drop-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(139, 69, 19, 0.12);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
}

.drop-zone-icon {
    font-size: 3rem;
    opacity: 0.7;
    margin-bottom: var(--space-sm);
}

.drop-zone-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.drop-zone-text strong {
    color: var(--accent-primary);
    font-size: var(--text-lg);
    font-weight: 600;
}

.drop-zone-text span {
    color: var(--text-muted);
    font-size: var(--text-base);
}

/* File List Styles */
.file-list {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease-out;
}

.file-item:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-sm);
}

.file-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    min-width: 0; /* Allow text to truncate */
}

.file-icon {
    font-size: 1.5rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0; /* Allow text to truncate */
}

.file-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--text-sm);
    word-break: break-word;
    line-height: 1.3;
}

.file-size {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.file-remove {
    background: none;
    border: none;
    color: var(--danger-color, #e74c3c);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 1rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove:hover {
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

.file-remove:focus {
    outline: 2px solid var(--danger-color, #e74c3c);
    outline-offset: 2px;
}

/* File Upload Stats */
.file-upload-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--surface-subtle);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

#fileCount {
    color: var(--text-secondary);
    font-weight: 500;
}

#totalSize {
    color: var(--success-color, #27ae60);
    font-weight: 600;
    font-family: var(--font-mono, 'Courier New', monospace);
}

/* Success/Error States */
.file-upload-success {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: var(--radius-md);
    color: var(--success-color, #27ae60);
    text-align: center;
    font-weight: 500;
}

.file-upload-error {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--radius-md);
    color: var(--danger-color, #e74c3c);
    text-align: center;
    font-weight: 500;
}

/* Button Styles */
.btn.btn-secondary {
    background: rgba(139, 69, 19, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(139, 69, 19, 0.9);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: var(--text-sm);
}

.btn.btn-secondary:hover {
    background: rgba(139, 69, 19, 1);
    border-color: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

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

.btn.btn-secondary:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Loading State */
.file-drop-zone.loading {
    pointer-events: none;
    opacity: 0.6;
}

.file-drop-zone.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* File State Indicators */
.file-item.error {
    border-color: rgba(231, 76, 60, 0.5);
    background: rgba(231, 76, 60, 0.05);
}

.file-item.error .file-name {
    color: var(--danger-color, #e74c3c);
}

.file-item.success {
    border-color: rgba(39, 174, 96, 0.5);
    background: rgba(39, 174, 96, 0.05);
}

.file-item.success .file-name {
    color: var(--success-color, #27ae60);
}

.file-item.success::after {
    content: '✓';
    color: var(--success-color, #27ae60);
    font-weight: bold;
    margin-left: var(--space-sm);
    font-size: 1.2rem;
}

/* Progress indicator for uploads */
.file-upload-progress {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--surface-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--info-color, #3498db), var(--info-dark, #2980b9));
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
    width: 0%;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-item.removing {
    animation: slideOut 0.2s ease-in forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* Integration with existing form styles */
.feedback-form .file-upload-section {
    border-color: rgba(139, 69, 19, 0.15);
    background: rgba(139, 69, 19, 0.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-upload-section {
        padding: var(--space-md);
        margin-top: var(--space-md);
    }

    .file-drop-zone {
        padding: var(--space-lg) var(--space-md);
        min-height: 120px;
    }

    .drop-zone-icon {
        font-size: 2.5rem;
    }

    .drop-zone-text strong {
        font-size: var(--text-base);
    }

    .drop-zone-text span {
        font-size: var(--text-sm);
    }

    .file-item {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
    }

    .file-info {
        gap: var(--space-sm);
    }

    .file-name {
        font-size: var(--text-xs);
    }

    .file-upload-stats {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .btn.btn-secondary {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {
    .file-upload-section {
        padding: var(--space-sm);
    }

    .file-drop-zone {
        padding: var(--space-md);
        min-height: 100px;
    }

    .drop-zone-content {
        gap: var(--space-sm);
    }

    .drop-zone-icon {
        font-size: 2rem;
    }

    .file-item {
        padding: var(--space-xs) var(--space-sm);
    }

    .file-details {
        gap: 0.125rem;
    }

    .file-remove {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .file-upload-section {
        background: rgba(139, 69, 19, 0.04);
        border-color: rgba(139, 69, 19, 0.15);
    }

    .file-drop-zone {
        background: rgba(139, 69, 19, 0.06);
        border-color: rgba(139, 69, 19, 0.5);
    }

    .file-drop-zone:hover {
        background: rgba(139, 69, 19, 0.1);
    }

    .file-drop-zone.drag-over {
        background: rgba(139, 69, 19, 0.15);
    }
}

/* ===================================================
   FILE UPLOAD LIGHT MODE
   =================================================== */

[data-theme="light"] .file-upload-section {
    background: rgba(139, 69, 19, 0.08);
    border: 1px solid rgba(139, 69, 19, 0.2);
}

[data-theme="light"] .file-upload-section .form-label {
    color: #333;
}

[data-theme="light"] .file-info {
    color: #666;
}

[data-theme="light"] .file-drop-zone {
    background: rgba(139, 69, 19, 0.06);
    border-color: rgba(139, 69, 19, 0.3);
}

[data-theme="light"] .file-drop-zone:hover {
    background: rgba(139, 69, 19, 0.12);
    border-color: rgba(139, 69, 19, 0.5);
}

[data-theme="light"] .file-drop-zone.drag-over {
    background: rgba(139, 69, 19, 0.18);
    border-color: var(--accent-primary, #007acc);
}

[data-theme="light"] .drop-zone-text strong {
    color: var(--accent-primary, #007acc);
}

[data-theme="light"] .drop-zone-text span {
    color: #555;
}

[data-theme="light"] .drop-zone-icon {
    opacity: 0.8;
    color: #666;
}

[data-theme="light"] #fileCount {
    color: #333;
}

[data-theme="light"] #totalSize {
    color: var(--success-color, #27ae60);
}

[data-theme="light"] .file-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .file-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .file-name {
    color: #222;
}

[data-theme="light"] .file-size {
    color: #666;
}

[data-theme="light"] .btn.btn-secondary {
    background: rgba(139, 69, 19, 0.9);
    color: white;
    border-color: rgba(139, 69, 19, 1);
}

[data-theme="light"] .btn.btn-secondary:hover {
    background: rgba(139, 69, 19, 1);
    border-color: #8B4513;
}

[data-theme="light"] .file-upload-stats {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

[data-theme="light"] .file-upload-success {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.3);
    color: #155724;
}

[data-theme="light"] .file-upload-error {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.3);
    color: #721c24;
}

[data-theme="light"] .file-upload-progress {
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
    color: #0c5460;
}

[data-theme="light"] .file-upload-section {
    --text-muted: #666;
}

[data-theme="light"] .drop-zone-content {
    --text-muted: #555;
}

[data-theme="light"] .file-remove {
    color: var(--danger-color, #e74c3c);
    background: rgba(231, 76, 60, 0.1);
}

[data-theme="light"] .file-remove:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #c82333;
}

[data-theme="light"] .file-upload-section * {
    /* Force any remaining muted text to be more visible */
}

[data-theme="light"] .file-upload-section .file-info,
[data-theme="light"] .file-upload-section span:not(.btn *) {
    color: #666 !important;
}

[data-theme="light"] .drop-zone-text {
    color: #555;
}

[data-theme="light"] .drop-zone-text * {
    color: inherit;
}

/* Hide file upload for non-bug reports */
.feedback-form:not([data-type="bug"]) .file-upload-section {
    display: none !important;
}

/* ===================================================
    YouTrack Duplication Detection
   =================================================== */


/* Duplicate Detection Indicator */
.duplicate-indicator {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.duplicate-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
}

.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color, #e9ecef);
    border-top: 2px solid var(--accent-color, #007bff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.duplicate-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.duplicate-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.duplicate-content {
    flex: 1;
}

.duplicate-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #856404;
    font-weight: 600;
}

.duplicate-content p {
    margin: 0 0 0.75rem 0;
    color: #6c5d03;
    font-size: 0.875rem;
    line-height: 1.4;
}

.duplicate-review-btn {
    padding: 0.5rem 1rem;
    background: #ffc107;
    color: #212529;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.duplicate-review-btn:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

/* Duplicate Modal */
.duplicate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.duplicate-modal.show {
    opacity: 1;
    visibility: visible;
}

.duplicate-modal-content {
    background: var(--bg-primary, #ffffff);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.duplicate-modal.show .duplicate-modal-content {
    transform: scale(1) translateY(0);
}

.duplicate-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e9ecef);
}

.duplicate-modal-header h3 {
    margin: 0;
    color: var(--text-primary, #212529);
    font-size: 1.25rem;
    font-weight: 600;
}

.duplicate-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary, #6c757d);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.duplicate-modal-close:hover {
    background: var(--bg-secondary, #f8f9fa);
    color: var(--text-primary, #212529);
}

.duplicate-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.duplicate-modal-intro {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary, #6c757d);
    font-size: 0.9rem;
    line-height: 1.5;
}

.duplicates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.duplicate-item {
    padding: 1.25rem;
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 12px;
    background: var(--bg-secondary, #f8f9fa);
    transition: all 0.2s ease;
}

.duplicate-item:hover {
    border-color: var(--accent-color, #007bff);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.duplicate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.duplicate-id-badge {
    background: var(--accent-color, #007bff);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
}

.duplicate-similarity {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.duplicate-title {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary, #212529);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.duplicate-description {
    margin: 0 0 1rem 0;
    color: var(--text-secondary, #6c757d);
    font-size: 0.875rem;
    line-height: 1.5;
}

.duplicate-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duplicate-link {
    color: var(--accent-color, #007bff);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.duplicate-link:hover {
    color: var(--accent-hover, #0056b3);
    text-decoration: underline;
}

.duplicate-state {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.duplicate-state.open {
    background: #d1ecf1;
    color: #0c5460;
}

.duplicate-state.resolved {
    background: #d4edda;
    color: #155724;
}

.duplicate-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color, #e9ecef);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.duplicate-modal-footer .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.duplicate-modal-footer .btn-secondary {
    background: var(--bg-secondary, #6c757d);
    color: white;
}

.duplicate-modal-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.duplicate-modal-footer .btn-primary {
    background: var(--accent-color, #007bff);
    color: white;
}

.duplicate-modal-footer .btn-primary:hover {
    background: var(--accent-hover, #0056b3);
    transform: translateY(-1px);
}

/* Dark theme support */
[data-theme="dark"] .duplicate-warning {
    background: linear-gradient(135deg, #2d2a1f 0%, #3d3524 100%);
    border-color: #6c5d03;
}

[data-theme="dark"] .duplicate-warning .duplicate-content strong {
    color: #ffc107;
}

[data-theme="dark"] .duplicate-warning .duplicate-content p {
    color: #e0c46c;
}

[data-theme="dark"] .duplicate-review-btn {
    background: #ffc107;
    color: #212529;
}

[data-theme="dark"] .duplicate-item {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Light theme support */
[data-theme="light"] .duplicate-modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #5a6268;
}

[data-theme="light"] .duplicate-modal-footer .btn-secondary:hover {
    background: #5a6268;
    color: white;
}

[data-theme="light"] .duplicate-modal-footer .btn-primary {
    background: #007bff;
    color: white;
}

[data-theme="light"] .duplicate-modal-footer .btn-primary:hover {
    background: #0056b3;
    color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .duplicate-modal {
        padding: 0.5rem;
    }

    .duplicate-modal-content {
        max-height: 90vh;
    }

    .duplicate-modal-header,
    .duplicate-modal-body,
    .duplicate-modal-footer {
        padding: 1rem;
    }

    .duplicate-modal-footer {
        flex-direction: column;
    }

    .duplicate-modal-footer .btn {
        width: 100%;
    }

    .duplicate-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .duplicate-warning {
        flex-direction: column;
        gap: 0.5rem;
    }

    .duplicate-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* ===================================================
   MY FEEDBACK SECTION STYLES
   =================================================== */

/* My Feedback Grid Layout */
.my-feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg, 1.5rem);
    margin-top: var(--space-xl, 2rem);
}

/* Issue Card Base */
.issue-card {
    background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-xl, 12px);
    padding: var(--space-xl, 1.5rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.issue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary, #007acc);
}

/* Issue Card States */
.issue-card.open {
    border-left: 4px solid var(--accent-primary, #007acc);
}

.issue-card.resolved {
    border-left: 4px solid var(--accent-tertiary, #28a745);
    opacity: 0.8;
}

.issue-card.resolved::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Issue Header */
.issue-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm, 0.5rem);
    margin-bottom: var(--space-lg, 1.5rem);
    padding-bottom: var(--space-sm, 0.5rem);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.issue-id-badge {
    background: var(--accent-primary, #007acc);
    color: white;
    padding: var(--space-xs, 0.25rem) var(--space-md, 1rem);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Space Grotesk', 'Courier New', monospace;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.issue-category,
.issue-type {
    display: flex;
    align-items: center;
    gap: var(--space-xs, 0.25rem);
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.08));
    padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
    border-radius: 16px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    flex-shrink: 0;
    font-size: 0.65rem;
}

.issue-status-top {
    background: rgba(0, 122, 204, 0.2);
    color: var(--accent-primary, #007acc);
    border: 1px solid rgba(0, 122, 204, 0.4);
    padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.issue-priority-top {
    padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.issue-priority-top.critical {
    background: rgba(220, 53, 69, 0.2);
    color: var(--accent-danger, #dc3545);
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.issue-priority-top.high {
    background: rgba(255, 193, 7, 0.2);
    color: var(--accent-secondary, #ffc107);
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.issue-priority-top.normal {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-secondary, #6c757d);
    border: 1px solid rgba(108, 117, 125, 0.4);
}

.issue-priority-top.low {
    background: rgba(23, 162, 184, 0.2);
    color: var(--accent-info, #17a2b8);
    border: 1px solid rgba(23, 162, 184, 0.4);
}


.type-icon {
    font-size: 1rem;
}

.type-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
}

/* Issue Content */
.issue-title {
    color: var(--text-primary, #ffffff);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 var(--space-md, 1rem) 0;
    font-family: var(--font-display, 'Space Grotesk');
    flex-grow: 0;
}

.issue-description {
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 var(--space-lg, 1.5rem) 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-grow: 1;
    min-height: 4.5rem;
}

/* Issue Meta Information */

.issue-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.issue-status {
    display: none;
}

.status-badge, .priority-badge {
    padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Status Badge Colors */
.status-badge.open {
    background: rgba(0, 122, 204, 0.15);
    color: var(--accent-primary, #007acc);
    border: 1px solid rgba(0, 122, 204, 0.3);
}

.status-badge.resolved {
    background: rgba(40, 167, 69, 0.15);
    color: var(--accent-tertiary, #28a745);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Priority Badge Colors */
.priority-badge.critical {
    background: rgba(220, 53, 69, 0.15);
    color: var(--accent-danger, #dc3545);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.priority-badge.high {
    background: rgba(255, 193, 7, 0.15);
    color: var(--accent-secondary, #ffc107);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.priority-badge.normal {
    background: rgba(108, 117, 125, 0.15);
    color: var(--text-tertiary, #6c757d);
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.priority-badge.low {
    background: rgba(23, 162, 184, 0.15);
    color: var(--accent-info, #17a2b8);
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* Issue Date */
.issue-date {
    font-size: 0.8rem;
    /*color: var(--text-tertiary, rgba(255, 255, 255, 0.6));*/
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* Issue Reporter */
.issue-reporter {
    font-size: 0.85rem;
    /*color: var(--text-tertiary);*/
    color: var(--text-secondary);
    font-style: italic;
}

/* Issue Actions */

.issue-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm, 0.5rem);
    flex-wrap: wrap;
    margin-top: var(--space-md, 1rem);
    flex: 0 0 auto;
}

.issue-actions > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.issue-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 122, 204, 0.1);
    border: 2px solid rgba(0, 122, 204, 0.2);
    border-radius: 8px;
    color: var(--accent-primary, #007acc);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: var(--font-primary, inherit);
}

.issue-link:hover {
    background: rgba(0, 122, 204, 0.2);
    border-color: rgba(0, 122, 204, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.1);
}

.issue-link:active {
    transform: translateY(0);
}

/* Loading States */
.my-feedback-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md, 1rem);
    padding: var(--space-3xl, 3rem);
    text-align: center;
}

.my-feedback-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color, rgba(255, 255, 255, 0.2));
    border-top: 3px solid var(--accent-primary, #007acc);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Empty State */
.my-feedback-empty {
    text-align: center;
    padding: var(--space-3xl, 3rem);
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
}

.my-feedback-empty h2 {
    color: var(--text-primary, #ffffff);
    margin-bottom: var(--space-lg, 1.5rem);
    font-family: var(--font-display, 'Space Grotesk');
}

.my-feedback-empty p {
    margin-bottom: var(--space-xl, 2rem);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Error States */
.my-feedback-error {
    background: linear-gradient(135deg, var(--accent-danger, #dc3545), #c82333);
    color: white;
    padding: var(--space-xl, 2rem);
    text-align: center;
    border-radius: var(--radius-xl, 12px);
    margin-bottom: var(--space-xl, 2rem);
}

.my-feedback-error strong {
    display: block;
    margin-bottom: var(--space-sm, 0.5rem);
    font-size: 1.1rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: var(--space-2xl, 2.5rem);
    padding-top: var(--space-xl, 2rem);
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.load-more-btn {
    background: var(--gradient-glass, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    color: var(--text-primary, #ffffff);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
    padding: var(--space-md, 1rem) var(--space-xl, 2rem);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary, #007acc);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Issue Count Header */
.my-feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl, 2rem);
    padding-bottom: var(--space-lg, 1.5rem);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.my-feedback-header h2 {
    color: var(--text-primary, #ffffff);
    margin: 0;
    font-family: var(--font-display, 'Space Grotesk');
}

.feedback-count {
    color: var(--accent-primary, #007acc);
    margin-right: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(0, 122, 204, 0.1);
    padding: var(--space-xs, 0.25rem) var(--space-md, 1rem);
    border-radius: 20px;
    border: 1px solid rgba(0, 122, 204, 0.2);
}

/* ============================
   VOTE BUTTON STYLES
   ============================ */

.vote-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.vote-button.resolved {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #232222;
}

.vote-button.resolved:hover {
    transform: none;
}

.vote-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vote-button:active {
    transform: translateY(0);
}

.vote-button.voted {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

.vote-button.voted:hover {
    background: rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.6);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

/* Loading state */
.vote-button.loading {
    pointer-events: none;
    opacity: 0.6;
}

.vote-button.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
    );
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Vote button elements */
.vote-icon {
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.vote-count {
    font-weight: 600;
    min-width: 1ch;
    text-align: center;
}

.vote-text {
    font-weight: 500;
}

/* Animation when voting */
.vote-button.vote-animation {
    animation: vote-success 0.3s ease;
}

@keyframes vote-success {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.vote-button:focus,
.issue-link:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.vote-button:focus:not(:focus-visible),
.issue-link:focus:not(:focus-visible) {
    outline: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .my-feedback-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: var(--space-md, 1rem);
    }

    .issue-card {
        padding: var(--space-lg, 1.25rem);
    }
}

@media (max-width: 768px) {

    .issue-actions {
        gap: 0.5rem;
    }

    .my-feedback-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md, 1rem);
    }

    .issue-card {
        padding: var(--space-lg, 1.25rem);
    }

    .issue-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm, 0.5rem);
    }

    .issue-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm, 0.5rem);
    }

    .issue-status {
        flex-wrap: wrap;
    }

    .my-feedback-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md, 1rem);
    }

    .vote-button,
    .issue-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .vote-text {
        display: none;
    }

    .vote-button {
        min-width: 80px;
    }
}

@media (max-width: 480px) {

    .issue-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .issue-card {
        padding: var(--space-md, 1rem);
    }

    .issue-title {
        font-size: 1rem;
    }

    .issue-description {
        font-size: 0.85rem;
        min-height: 4rem;
    }

    .status-badge, .priority-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .vote-button,
    .issue-link {
        width: 100%;
        flex: none;
    }

    .vote-text {
        display: inline;
    }

    .issue-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dark Theme Adjustments */
@media (prefers-color-scheme: dark) {
    .issue-card {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .issue-card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--accent-primary, #007acc);
    }

    .vote-button {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .vote-button:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .issue-link {
        background: rgba(0, 122, 204, 0.1);
        border-color: rgba(0, 122, 204, 0.2);
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .vote-button,
    .issue-link {
        border-width: 3px;
    }

    .vote-button.voted {
        background: #e74c3c;
        color: white;
        border-color: #c0392b;
    }
}


/* Light Theme Adjustments */

@media (prefers-color-scheme: light) {
    .vote-button {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1);
        color: var(--text-primary);
    }

    .vote-button:hover {
        background: rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.15);
    }

    .vote-button.voted {
        background: rgba(231, 76, 60, 0.1);
        border-color: rgba(231, 76, 60, 0.3);
        color: #c0392b;
    }

    .issue-link {
        background: rgba(0, 122, 204, 0.08);
        border-color: rgba(0, 122, 204, 0.15);
    }
}

[data-theme="light"] .issue-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .issue-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent-primary, #007acc);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .issue-card.open {
    border-left: 4px solid var(--accent-primary, #007acc);
}

[data-theme="light"] .issue-card.resolved {
    border-left: 4px solid var(--accent-tertiary, #28a745);
    opacity: 0.8;
}

[data-theme="light"] .issue-card.resolved::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, transparent 50%);
    pointer-events: none;
}


[data-theme="light"] .issue-title {
    color: #222;
}

[data-theme="light"] .issue-description {
    color: #666;
}

[data-theme="light"] .issue-date {
    color: #888;
}

[data-theme="light"] .type-text {
    color: #666;
}

[data-theme="light"] .issue-type.issue-category {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .feedback-search-container {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}


/* Animation for new cards loading in */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.issue-card {
    animation: cardSlideIn 0.4s ease-out;
}

.issue-card:nth-child(1) {
    animation-delay: 0.05s;
}

.issue-card:nth-child(2) {
    animation-delay: 0.1s;
}

.issue-card:nth-child(3) {
    animation-delay: 0.15s;
}

.issue-card:nth-child(4) {
    animation-delay: 0.2s;
}

.issue-card:nth-child(5) {
    animation-delay: 0.25s;
}

.issue-card:nth-child(6) {
    animation-delay: 0.3s;
}

/* ===================================================
   MY FEEDBACK SEARCH & FILTER STYLES
   =================================================== */

.feedback-search-container {
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-xl, 12px);
    padding: var(--space-lg, 1.5rem);
    margin: var(--space-xl, 2rem) 0;
    backdrop-filter: blur(10px);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: var(--space-lg, 1.5rem);
}

.feedback-search-input {
    width: 100%;
    padding: var(--space-md, 1rem) var(--space-xl, 2rem) var(--space-md, 1rem) var(--space-lg, 1.5rem);
    background: var(--bg-quaternary, rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-lg, 8px);
    color: var(--text-primary, #ffffff);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.feedback-search-input:focus {
    outline: none;
    border-color: var(--accent-primary, #007acc);
    background: var(--bg-quaternary, rgba(255, 255, 255, 0.08));
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

.feedback-search-input::placeholder {
    color: var(--text-tertiary, rgba(255, 255, 255, 0.5));
}

.search-clear-btn {
    position: absolute;
    right: var(--space-md, 1rem);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.5));
    cursor: pointer;
    padding: var(--space-xs, 0.25rem);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.search-clear-btn:hover {
    background: var(--accent-danger, #dc3545);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.search-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md, 1rem);
}

.filter-select {
    width: 100%;
    padding: var(--space-md, 1rem) var(--space-lg, 1.5rem);
    background: var(--bg-quaternary, rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 6px);
    color: var(--text-primary, #ffffff);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary, #007acc);
    background: var(--bg-quaternary, rgba(255, 255, 255, 0.08));
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

.filter-select option {
    background: var(--bg-primary, #1a1a1a);
    color: var(--text-primary, #ffffff);
    padding: var(--space-sm, 0.5rem);
    font-size: 1rem;
    outline: none;
}

/* Search Results Highlighting */
.search-highlight {
    background: rgba(255, 235, 59, 0.3);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

/* No Results State */
.no-search-results {
    text-align: center;
    padding: var(--space-3xl, 3rem);
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
}

.no-search-results h3 {
    color: var(--text-primary, #ffffff);
    margin-bottom: var(--space-lg, 1.5rem);
    font-family: var(--font-display, 'Space Grotesk');
}

.no-search-results p {
    margin-bottom: var(--space-xl, 2rem);
    line-height: 1.6;
}

.clear-search-btn {
    background: var(--accent-primary, #007acc);
    color: white;
    border: none;
    padding: var(--space-md, 1rem) var(--space-xl, 2rem);
    border-radius: var(--radius-lg, 8px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.clear-search-btn:hover {
    background: var(--accent-primary-dark, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 204, 0.3);
}

/* Search Stats */
.search-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--space-lg, 1.5rem) 0;
    padding: var(--space-md, 1rem);
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.03));
    border-radius: var(--radius-md, 6px);
    font-size: 0.9rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
}

.search-timing {
    font-style: italic;
    opacity: 0.7;
}

/* Active Filter Indicators */
.active-filters {
    display: flex;
    gap: var(--space-sm, 0.5rem);
    margin-top: var(--space-md, 1rem);
    flex-wrap: wrap;
}

.filter-tag {
    background: var(--accent-primary, #007acc);
    color: white;
    padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs, 0.25rem);
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: var(--space-xs, 0.25rem);
    font-size: 0.8rem;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.filter-tag button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Load More Button for Search Results */
.load-more-with-search {
    text-align: center;
    margin-top: var(--space-xl, 2rem);
    padding: var(--space-lg, 1.5rem);
    background: var(--bg-tertiary, rgba(255, 255, 255, 0.03));
    border-radius: var(--radius-lg, 8px);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.search-progress {
    margin-top: var(--space-md, 1rem);
    height: 4px;
    background: var(--bg-secondary, rgba(255, 255, 255, 0.1));
    border-radius: 2px;
    overflow: hidden;
}

.search-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary, #007acc), var(--accent-secondary, #17a2b8));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .feedback-search-container {
        padding: var(--space-md, 1rem);
        margin: var(--space-lg, 1.5rem) 0;
    }

    .search-filters {
        grid-template-columns: 1fr;
        gap: var(--space-sm, 0.5rem);
    }

    .filter-select {
        padding: var(--space-md, 1rem);
        font-size: 1rem;
    }

    .search-stats {
        flex-direction: column;
        gap: var(--space-sm, 0.5rem);
        text-align: center;
    }

    .active-filters {
        justify-content: center;
    }

    .search-filters {
        grid-template-columns: 1fr;
        gap: var(--space-sm, 0.5rem);
    }

    .filter-select {
        padding: var(--space-md, 1rem);
        font-size: 1rem;
        min-height: 48px;
    }

    .issue-header {
        gap: var(--space-xs, 0.25rem);
        margin-bottom: var(--space-md, 1rem);
    }

    .issue-id-badge,
    .issue-type,
    .issue-category,
    .issue-status-top,
    .issue-priority-top {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .type-icon {
        font-size: 0.8rem;
    }

    .type-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .feedback-search-container {
        padding: var(--space-md, 1rem);
    }

    .feedback-search-input {
        padding: var(--space-md, 1rem) var(--space-xl, 2rem) var(--space-md, 1rem) var(--space-md, 1rem);
        font-size: 1rem;
    }

    .search-clear-btn {
        right: var(--space-sm, 0.5rem);
    }

    .search-filters {
        gap: var(--space-xs, 0.25rem);
    }

    .filter-select {
        padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
        font-size: 0.9rem;
        min-height: 44px;
        padding-right: 2.5rem;
        background-size: 0.8rem;
        background-position: right 0.75rem center;
    }

    .issue-header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 0.2rem;
    }

    .issue-id-badge,
    .issue-type,
    .issue-category,
    .issue-status-top,
    .issue-priority-top {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
        margin: 0.1rem;
    }
}

/* 9. DESKTOP RESPONSIVE IMPROVEMENTS */
@media (min-width: 769px) {
    .search-filters {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: var(--space-md, 1rem);
    }

    .filter-select {
        padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
        font-size: 0.9rem;
        padding-right: 2.5rem;
    }
}

.issue-status-top.resolved {
    background: rgba(40, 167, 69, 0.25);
    color: #2ecc71;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.issue-status-top.open {
    background: rgba(0, 122, 204, 0.25);
    color: #3498db;
    border: 1px solid rgba(0, 122, 204, 0.5);
}

/* Dark Theme Adjustments */
@media (prefers-color-scheme: dark) {

    .feedback-search-input {

        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .filter-select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    }

    .feedback-search-input:focus,
    .filter-select:focus {
        background: rgba(255, 255, 255, 0.05);
    }
}


[data-theme="light"] .filter-select {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

[data-theme="light"] .filter-select:focus {
    border-color: var(--accent-primary, #007acc);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .filter-select option {
    background: white;
    color: #333;
}


[data-theme="light"] .feedback-search-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

[data-theme="light"] .feedback-search-input::placeholder {
    color: #666;
}

[data-theme="light"] .search-clear-btn {
    color: #666;
}

[data-theme="light"] .search-clear-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--accent-danger, #dc3545);
}

[data-theme="light"] .my-feedback-header h2 {
    color: #222;
}

[data-theme="light"] .feedback-count {
    background: rgba(0, 122, 204, 0.1);
    color: var(--accent-primary, #007acc);
    border-color: rgba(0, 122, 204, 0.2);
}

[data-theme="light"] .filter-select option {
    background: white;
    color: #333;
}

[data-theme="light"] .status-badge.open {
    background: rgba(0, 122, 204, 0.15);
    color: var(--accent-primary, #007acc);
    border: 1px solid rgba(0, 122, 204, 0.3);
}

[data-theme="light"] .status-badge.resolved {
    background: rgba(40, 167, 69, 0.15);
    color: var(--accent-tertiary, #28a745);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

[data-theme="light"] .priority-badge.critical {
    background: rgba(220, 53, 69, 0.15);
    color: var(--accent-danger, #dc3545);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

[data-theme="light"] .priority-badge.high {
    background: rgba(255, 193, 7, 0.15);
    color: #e0a800;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

[data-theme="light"] .priority-badge.normal {
    background: rgba(108, 117, 125, 0.15);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

[data-theme="light"] .priority-badge.low {
    background: rgba(23, 162, 184, 0.15);
    color: #117a8b;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* Performance optimization for large lists */
.virtual-scroll-container {
    height: 600px;
    overflow-y: auto;
    position: relative;
}

.virtual-scroll-viewport {
    position: relative;
}

.virtual-scroll-spacer {
    pointer-events: none;
}

/* Smooth scrolling for better UX */
.my-feedback-grid {
    scroll-behavior: smooth;
}

/* Focus management for accessibility */
.feedback-search-input:focus,
.filter-select:focus,
.load-more-btn:focus,
.clear-search-btn:focus {
    outline: 2px solid var(--accent-primary, #007acc);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .issue-card {
        animation: none;
    }

    .search-progress-bar {
        transition: none;
    }

    .my-feedback-grid {
        scroll-behavior: auto;
    }

    .vote-button,
    .issue-link,
    .vote-icon {
        transition: none;
    }

    .vote-button:hover,
    .issue-link:hover {
        transform: none;
    }

    .vote-button.vote-animation {
        animation: none;
    }

    @keyframes loading-shimmer {
        0%, 100% {
            opacity: 0.6;
        }
        50% {
            opacity: 0.8;
        }
    }

}


/* ===================================================
   ENHANCED ACTIVE FILTERS DISPLAY
   =================================================== */

.active-filters-section {
    margin-top: var(--space-lg, 1.5rem);
    padding-top: var(--space-lg, 1.5rem);
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.active-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md, 1rem);
}

.active-filters-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
}

.clear-all-filters-btn {
    background: var(--accent-danger, #dc3545);
    color: white;
    border: none;
    padding: var(--space-xs, 0.25rem) var(--space-md, 1rem);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xs, 0.25rem);
}

.clear-all-filters-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.clear-all-filters-btn:active {
    transform: translateY(0);
}

.active-filters {
    display: flex;
    gap: var(--space-sm, 0.5rem);
    flex-wrap: wrap;
    align-items: center;
}

.filter-tag {
    background: var(--accent-primary, #007acc);
    color: white;
    padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs, 0.25rem);
    animation: filterSlideIn 0.3s ease-out;
    box-shadow: 0 2px 4px rgba(0, 122, 204, 0.2);
}

.filter-tag button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: var(--space-xs, 0.25rem);
    font-size: 0.9rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-weight: bold;
}

.filter-tag button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.filter-tag button:active {
    transform: scale(0.9);
}

/* Different colors for different filter types */
.filter-tag[data-type="search"] {
    background: var(--accent-tertiary, #28a745);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.filter-tag[data-type="status"] {
    background: var(--accent-secondary, #ffc107);
    color: #212529;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.filter-tag[data-type="status"] button {
    background: rgba(0, 0, 0, 0.2);
    color: #212529;
}

.filter-tag[data-type="status"] button:hover {
    background: rgba(0, 0, 0, 0.3);
}

.filter-tag[data-type="type"] {
    background: var(--accent-info, #17a2b8);
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

.filter-tag[data-type="priority"] {
    background: var(--accent-warning, #fd7e14);
    box-shadow: 0 2px 4px rgba(253, 126, 20, 0.2);
}

/* Enhanced search clear button */
.search-clear-btn {
    position: absolute;
    right: var(--space-md, 1rem);
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-danger, #dc3545);
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--space-xs, 0.25rem);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.search-clear-btn:hover {
    background: #c82333;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.search-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-clear-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* Animation for filter tags */
@keyframes filterSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Animation for removing filter tags */
.filter-tag.removing {
    animation: filterSlideOut 0.2s ease-in forwards;
}

@keyframes filterSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-10px) scale(0.9);
    }
}

/* Enhanced feedback count with tooltip */
.feedback-count {
    position: relative;
    cursor: help;
    transition: all 0.2s ease;
}

.feedback-count:hover {
    transform: scale(1.05);
}

/* Responsive design for active filters */
@media (max-width: 768px) {
    .active-filters-header {
        flex-direction: column;
        gap: var(--space-sm, 0.5rem);
        align-items: flex-start;
    }

    .clear-all-filters-btn {
        align-self: stretch;
        justify-content: center;
    }

    .active-filters {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .filter-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .filter-tag button {
        width: 16px;
        height: 16px;
        font-size: 0.8rem;
    }

    .search-clear-btn {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .active-filters-section {
        border-top-color: rgba(255, 255, 255, 0.05);
    }
}

/* Light theme adjustments */
[data-theme="light"] .active-filters-section {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .active-filters-label {
    color: #666;
}

[data-theme="light"] .filter-tag {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Improved accessibility */
.filter-tag:focus-within {
    outline: 2px solid var(--accent-primary, #007acc);
    outline-offset: 2px;
}

.clear-all-filters-btn:focus,
.search-clear-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}


/* ===================================================
   Feedback Sub Tab Navigation
   =================================================== */

/* Sub-tab Navigation Styles */
.feedback-sub-tabs {
    background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-top: none; /* Connect to auth section above */
    padding: 0;
    margin: 0;
    position: relative;
}

.sub-tab-nav {
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.sub-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: var(--space-lg, 1.5rem) var(--space-md, 1rem);
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs, 0.25rem);
    position: relative;
    font-family: var(--font-primary);
    border-right: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.sub-tab-btn:last-child {
    border-right: none;
}

.sub-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #ffffff);
}

.sub-tab-btn.active {
    background: rgba(0, 122, 204, 0.1);
    color: var(--accent-primary, #007acc);
    border-bottom: 3px solid var(--accent-primary, #007acc);
}

.sub-tab-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sub-tab-btn.disabled:hover {
    background-color: inherit;
    color: inherit;
}

.sub-tab-btn.active::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-primary, #007acc);
    box-shadow: 0 0 10px rgba(0, 122, 204, 0.5);
}

.tab-icon {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs, 0.25rem);
}

.tab-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Sub-tab Content Areas */
.sub-tab-content {
    display: none !important;
    animation: fadeIn 0.3s ease;
}

.sub-tab-content.active {
    display: block !important;
}

.my-feedback-section {
    background: var(--bg-secondary, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-top: none;
    padding: 0;
    margin: 0;
    transition: var(--transition-normal);
}


.my-feedback-content,
.my-feedback-loading,
.my-feedback-error,
.my-feedback-empty {
    padding: var(--space-xl, 2rem);
    margin: 0;
}

.my-feedback-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px var(--shadow-md);
}


.feedback-form-section {
    border-top: none;
    margin: 0;
}

.feedback-sub-tabs.is-last {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.sub-tab-content.is-last {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.my-feedback-section.is-last {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.feedback-form-section.is-last {
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Mobile responsive sub-tabs */
@media (max-width: 768px) {
    .sub-tab-btn {
        padding: var(--space-md, 1rem) var(--space-sm, 0.5rem);
        flex-direction: row;
        gap: var(--space-sm, 0.5rem);
    }

    .tab-icon {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .tab-text {
        font-size: 0.8rem;
    }

    .my-feedback-content,
    .my-feedback-loading,
    .my-feedback-error,
    .my-feedback-empty {
        padding: var(--space-lg, 1.5rem);
    }
}

@media (max-width: 480px) {
    .sub-tab-btn {
        padding: var(--space-sm, 0.5rem) var(--space-xs, 0.25rem);
        flex-direction: column;
        gap: 0.2rem;
    }

    .tab-icon {
        font-size: 0.9rem;
    }

    .tab-text {
        font-size: 0.7rem;
    }

    .my-feedback-content,
    .my-feedback-loading,
    .my-feedback-error,
    .my-feedback-empty {
        padding: var(--space-md, 1rem);
    }
}

/* Smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Light theme adjustments */
[data-theme="light"] .feedback-sub-tabs {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .sub-tab-btn {
    color: #666;
}

[data-theme="light"] .sub-tab-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

[data-theme="light"] .sub-tab-btn.active {
    background: rgba(0, 122, 204, 0.1);
    color: #007acc;
}

[data-theme="light"] .my-feedback-section {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ===================================================
   COMMUNITY ISSUES TAB STYLING
   =================================================== */

@media (max-width: 768px) {
    .sub-tab-nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
    }

    .sub-tab-btn {
        padding: var(--space-md, 1rem) var(--space-xs, 0.25rem);
        font-size: 0.8rem;
    }

    .tab-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sub-tab-btn {
        padding: var(--space-sm, 0.5rem) var(--space-xs, 0.25rem);
        flex-direction: column;
        gap: 0.2rem;
    }

    .tab-text {
        font-size: 0.65rem;
    }

    .tab-icon {
        font-size: 0.9rem;
    }
}

/* 2. Community issues specific styling */
.sub-tab-btn[data-tab="community-issues"] .tab-icon {
    color: #10b981; /* Green earth icon */
}

.sub-tab-btn[data-tab="community-issues"].active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-tertiary, #10b981);
    border-bottom: 3px solid var(--accent-tertiary, #10b981);
}

.sub-tab-btn[data-tab="community-issues"].active::before {
    background: var(--accent-tertiary, #10b981);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* 3. Community feedback section styling */
#communityFeedbackSection {
    /* Inherits from .my-feedback-section */
}

/* 4. Light mode adjustments */
[data-theme="light"] .sub-tab-btn[data-tab="community-issues"] .tab-icon {
    color: #059669;
}

[data-theme="light"] .sub-tab-btn[data-tab="community-issues"].active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}



