/* ===== CSS Variables ===== */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --new-badge-color: #8b5cf6;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-hover: #e2e8f0;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Header ===== */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

/* ===== Main Content ===== */
.main {
    padding: 2rem 1.5rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Board Header ===== */
.board-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: var(--radius-lg);
    color: white;
}

.board-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.board-description {
    font-size: 1rem;
    opacity: 0.9;
/*     max-width: 500px; */
    line-height: 1.6;
}

/* ===== Filters ===== */
.filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 280px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.search-box input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* ===== Sections ===== */
.section {
    margin-bottom: 2rem;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-xl);
}

.new-badge {
    background: rgba(139, 92, 246, 0.15);
    color: var(--new-badge-color);
}


.section-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Idea Cards ===== */
.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idea-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.idea-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.idea-card.new-idea {
    border-left: 4px solid var(--new-badge-color);
}


/* Vote Button */
.vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: 0.75rem 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.vote-btn:hover:not(.voted) {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.vote-btn.voted {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.vote-btn i {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.vote-count {
    font-size: 0.875rem;
    font-weight: 700;
}

/* Idea Content */
.idea-content {
    flex: 1;
    min-width: 0;
}

.idea-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.idea-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.idea-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.idea-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idea-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.idea-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.idea-tag.feature { background: rgba(99, 102, 241, 0.1); color: var(--primary-color); }
.idea-tag.improvement { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.idea-tag.integration { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.idea-tag.ui { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.idea-tag.other { background: var(--bg-tertiary); color: var(--text-secondary); }

/* Status badges */
.idea-tag.status-new { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; font-weight: 600; }
.idea-tag.status-under-review { background: rgba(59, 130, 246, 0.1); color: #3b82f6; font-weight: 600; }
.idea-tag.status-planned { background: rgba(245, 158, 11, 0.1); color: #f59e0b; font-weight: 600; }
.idea-tag.status-in-progress { background: rgba(16, 185, 129, 0.1); color: #10b981; font-weight: 600; }
.idea-tag.status-completed { background: rgba(34, 197, 94, 0.1); color: #22c55e; font-weight: 600; }
.idea-tag.status-declined { background: rgba(239, 68, 68, 0.1); color: #ef4444; font-weight: 600; }
.idea-tag.status-default { background: var(--bg-tertiary); color: var(--text-secondary); font-weight: 600; }

.idea-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.idea-author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.new-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: rgba(139, 92, 246, 0.15);
    color: var(--new-badge-color);
    border-radius: var(--radius-sm);
}

.new-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--new-badge-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ===== Idea Detail Modal ===== */
.modal-large .modal-content {
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-body-scroll {
    overflow-y: auto;
    padding: 0;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-idea-id {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.idea-detail-content {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.idea-detail-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 80px;
}

.vote-btn-large {
    min-width: 72px;
    padding: 1rem 0.75rem;
}

.vote-btn-large i {
    font-size: 1.5rem;
}

.vote-btn-large .vote-count {
    font-size: 1.125rem;
}

.idea-detail-meta {
    padding-left: 2rem;
    padding-top: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--text-muted);
    width: 16px;
}

.idea-detail-main {
    flex: 1;
    min-width: 0;
}

.idea-detail-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.idea-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.idea-images-gallery img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.idea-images-gallery img:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.image-preview-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-content {
    position: relative;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin: auto;
}

.image-preview-media {
    position: relative;
    display: inline-block;
}

.image-preview-content img {
    display: block;
    max-width: 85vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.image-preview-media .modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

/* Comments Section */
.comments-section {
    padding: 1.5rem;
}

.comments-header {
    margin-bottom: 1.25rem;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    border-radius: var(--radius-xl);
}

.comment-form {
    margin-bottom: 1.5rem;
}

.comment-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-input-wrapper textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
    transition: all var(--transition-fast);
}

.comment-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.comment-input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.comment-input-wrapper .btn {
    align-self: flex-end;
}

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

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    animation: fadeInUp 0.3s ease;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

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

.comment-author {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.empty-comments {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-comments-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.empty-comments-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.idea-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.idea-comments-link:hover {
    color: var(--primary-color);
}

.idea-comments-link i {
    font-size: 0.875rem;
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.file-upload {
    position: relative;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.file-upload.is-dragover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--bg-primary);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-upload-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.file-upload-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.file-upload-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .idea-detail-content {
        flex-direction: column;
        gap: 1rem;
    }

    .idea-detail-sidebar {
        flex-direction: row;
        align-items: center;
        min-width: auto;
    }
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1100;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
}

.toast-content.toast-success i {
    color: var(--success-color);
}

.toast-content.toast-error {
    background: var(--danger-color);
}

.toast-content.toast-error i {
    color: white;
}

.toast-content.toast-info {
    background: var(--primary-color);
}

.toast-content.toast-info i {
    color: white;
}

.toast-content i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    /* Header adjustments */
    .header-container {
        padding: 0.875rem 1rem;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

    /* Main content padding */
    .main {
        padding: 1rem;
    }

    /* Board header - stack elements vertically */
    .board-header {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .board-title {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }

    .board-description {
        font-size: 0.9375rem;
        max-width: 100%;
    }

    /* Filters - stack vertically and make tabs scrollable */
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filter-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--border-color) transparent;
    }

    .filter-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .filter-tabs::-webkit-scrollbar-track {
        background: transparent;
    }

    .filter-tabs::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }

    .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
        /* Ensure touch-friendly target size (44px minimum) */
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    .search-box {
        max-width: none;
        width: 100%;
    }

    .search-box input {
        /* Ensure touch-friendly target size */
        min-height: 44px;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }

    /* Section headers */
    .section-header {
        flex-wrap: wrap;
    }

    .section-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }

    /* Idea cards - adjust padding for mobile */
    .idea-card {
        padding: 1rem;
        gap: 0.875rem;
    }

    /* Vote button - ensure touch-friendly size (44px minimum) */
    .vote-btn {
        min-width: 48px;
        min-height: 48px;
        padding: 0.625rem 0.5rem;
    }

    .vote-btn i {
        font-size: 1.125rem;
    }

    .vote-count {
        font-size: 0.8125rem;
    }

    /* Idea content adjustments */
    .idea-title {
        font-size: 0.9375rem;
    }

    .idea-description {
        font-size: 0.8125rem;
        -webkit-line-clamp: 3;
    }

    .idea-meta {
        gap: 0.75rem;
    }

    .idea-tag {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    .idea-date,
    .idea-author {
        font-size: 0.6875rem;
    }

    /* Buttons - ensure touch-friendly size */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    .btn-large {
        min-height: 48px;
        padding: 1rem 1.25rem;
    }

    /* Modal adjustments */
    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

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

    .modal-body {
        padding: 1.25rem;
    }

    .modal-footer {
        padding: 0.875rem 1.25rem;
        flex-wrap: wrap;
    }

    .modal-footer .btn {
        flex: 1;
        min-width: 120px;
    }

    /* Form elements - ensure touch-friendly */
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 44px;
        padding: 0.75rem 0.875rem;
        font-size: 1rem; /* Prevent zoom on iOS */
    }

    .form-group textarea {
        min-height: 120px;
    }

    .form-group label {
        font-size: 0.8125rem;
    }

    /* Toast adjustments */
    .toast {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(100px);
    }

    .toast.active {
        transform: translateX(0) translateY(0);
    }

    .toast-content {
        min-width: auto;
        width: 100%;
        padding: 0.875rem 1rem;
    }

    .toast-message {
        font-size: 0.8125rem;
    }

    /* Empty state */
    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        width: 56px;
        height: 56px;
        font-size: 1.375rem;
    }

    .empty-state-title {
        font-size: 0.9375rem;
    }

    .empty-state-text {
        font-size: 0.8125rem;
    }
}

/* Additional responsive breakpoint for very small screens */
@media (max-width: 375px) {
    .board-header {
        padding: 1.25rem 0.875rem;
    }

    .board-title {
        font-size: 1.375rem;
    }

    .idea-card {
        padding: 0.875rem;
    }

    .modal-content {
        margin: 0.25rem;
    }
}

/* ===== Animations ===== */

/* Idea card entrance animation */
.idea-card {
    animation: fadeInUp 0.4s ease backwards;
}

/* Stagger animation for multiple cards */
.idea-card:nth-child(1) { animation-delay: 0.05s; }
.idea-card:nth-child(2) { animation-delay: 0.1s; }
.idea-card:nth-child(3) { animation-delay: 0.15s; }
.idea-card:nth-child(4) { animation-delay: 0.2s; }
.idea-card:nth-child(5) { animation-delay: 0.25s; }
.idea-card:nth-child(n+6) { animation-delay: 0.3s; }

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

/* Vote button animation on click */
.vote-btn.voted {
    animation: voteBump 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes voteBump {
    0% { transform: scale(1); }
    30% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Vote button hover animation */
.vote-btn:not(.voted):hover {
    animation: voteHover 0.3s ease;
}

@keyframes voteHover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Filter tab transition */
.filter-tab {
    position: relative;
}

.filter-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* .filter-tab.active::after {
    transform: scaleX(1);
} */

/* Modal entrance animation */
.modal.active .modal-content {
    animation: modalSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal overlay fade in */
.modal.active .modal-overlay {
    animation: fadeIn 0.3s ease;
}

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

/* Toast slide in animation */
.toast.active {
    animation: toastSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Pulse animation for new indicator */
.new-indicator::before {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Smooth transitions for interactive elements */
.idea-card,
.vote-btn,
.btn,
.filter-tab,
.modal-close,
.search-box input,
.form-group input,
.form-group textarea,
.form-group select {
    transition: all var(--transition-normal);
}

/* Hover state enhancements */
.idea-card:hover .idea-title {
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    transform: rotate(90deg);
}

.btn:active {
    transform: translateY(1px);
}

.vote-btn:active {
    transform: scale(0.95);
}
