
/* Modern Hero Section Styles */
.hero-section {
    position: relative;
    background: linear-gradient(120deg, #2a3d66 0%, #4f46e5 100%);
    min-height: 400px;
    padding: 80px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%237e84f7' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4f46e5;
    background: #fff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background: #f8fafc;
}

/* Modern Stats Section */
.stats-section {
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-questions {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.stat-answers {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-users {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.stat-today {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.5rem 0;
    background: linear-gradient(120deg, #2a3d66 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .stats-section {
        margin-top: -30px;
    }

    .stat-card {
        margin-bottom: 1rem;
    }
}
/* Modern Header Styles */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}


.modern-navbar.scrolled {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

/* Logo styling */
.modern-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-navbar .navbar-brand img {
    height: 36px;
    transition: all 0.3s ease;
}

.modern-navbar .brand-text {
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(120deg, #2a3d66 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search bar styling */
.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.modern-search {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    width: 100%;
    transition: all 0.3s ease;
}

.modern-search:focus {
    background: #fff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* Navigation links */
.modern-navbar .nav-link {
    padding: 0.5rem 1rem;
    color: #64748b;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.modern-navbar .nav-link:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.05);
}

.modern-navbar .nav-link.active {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

.modern-navbar .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* User menu */
.user-menu-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-menu-button:hover {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.05);
}

.user-menu-button img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dropdown menu styling */
.modern-dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 220px;
    margin-top: 0.5rem;
}

.modern-dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modern-dropdown-menu .dropdown-item:hover {
    background: rgba(79, 70, 229, 0.05);
    color: #4f46e5;
}

.modern-dropdown-menu .dropdown-item i {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.modern-dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e2e8f0;
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.auth-buttons .btn-login {
    padding: 0.5rem 1.25rem;
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-buttons .btn-login:hover {
    background: rgba(79, 70, 229, 0.15);
}

.auth-buttons .btn-register {
    padding: 0.5rem 1.25rem;
    color: #fff;
    background: #4f46e5;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-buttons .btn-register:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .search-container {
        max-width: 100%;
        margin: 1rem 0;
    }

    .modern-navbar .nav-link {
        padding: 0.75rem 1rem;
    }

    .auth-buttons {
        margin-top: 1rem;
        width: 100%;
    }

    .auth-buttons .btn {
        flex: 1;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Hero section mobile adjustments */
    .hero-section {
        padding: 40px 0;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Stats section mobile */
    .stats-section {
        margin-top: -20px;
    }
    
    .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Navigation mobile */
    .modern-navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 28px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    /* Search bar mobile */
    .modern-search {
        padding: 0.6rem 0.8rem 0.6rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 0.8rem;
    }
    
    /* Question cards mobile */
    .question-card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .question-stats {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.25rem 0.5rem;
        min-width: 60px;
        flex: 1;
    }
    
    .stat-number {
        font-size: 0.95rem;
        line-height: 1.1;
    }
    
    .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .question-content {
        padding: 1rem;
    }
    
    .question-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .question-excerpt {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    /* Tags mobile */
    .tags-section {
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }
    
    .question-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .question-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Author section mobile */
    .author-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .author-info {
        gap: 0.5rem;
    }
    
    .author-avatar {
        width: 28px;
        height: 28px;
    }
    
    .author-name {
        font-size: 0.85rem;
    }
    
    .question-time {
        font-size: 0.75rem;
    }
    
    /* Sidebar mobile */
    .sidebar-nav {
        margin-bottom: 2rem;
    }
    
    .sidebar-menu {
        margin-bottom: 1.5rem;
    }
    
    .menu-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Filter buttons mobile */
    .quick-filters {
        margin-bottom: 1rem;
    }
    
    .filter-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        margin: 0.25rem;
    }
    
    /* Modal mobile */
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    /* Comments mobile */
    .comment-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .comment-avatar {
        width: 28px;
        height: 28px;
    }
    
    .comment-text {
        font-size: 0.8rem;
    }
    
    /* Form elements mobile */
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* User menu mobile */
    .user-menu-button {
        padding: 0.4rem 0.8rem;
        gap: 0.5rem;
    }
    
    .user-menu-button img {
        width: 28px;
        height: 28px;
    }
    
    /* Dropdown mobile */
    .modern-dropdown-menu {
        min-width: 200px;
        margin-top: 0.25rem;
    }
    
    .modern-dropdown-menu .dropdown-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .question-card {
        border-radius: 8px;
    }
    
    .question-stats {
        padding: 0.4rem 0.75rem;
        gap: 0.25rem;
    }
    
    .question-content {
        padding: 0.75rem;
    }
    
    .question-title {
        font-size: 0.95rem;
    }
    
    .question-excerpt {
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 0.85rem;
        line-height: 1.1;
    }
    
    .stat-label {
        font-size: 0.6rem;
        line-height: 1.2;
        margin-top: 0.1rem;
    }
    
    .filter-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .modern-search {
        padding: 0.5rem 0.7rem 0.5rem 2.2rem;
        font-size: 0.85rem;
    }
    
    .search-icon {
        left: 0.7rem;
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0;
        min-height: 250px;
    }
    
    .stats-section {
        margin-top: -15px;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
}

/* Fix for very wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Print styles */
@media print {
    .modern-navbar,
    .sidebar-nav,
    .auth-buttons,
    .filter-button,
    .btn,
    .modal {
        display: none !important;
    }
    
    .question-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .hero-section {
        background: none;
        color: #000;
    }
}

/* Modern Question Card Layout */
.question-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.1);
}

/* Question content - now takes full width */
.question-content {
    padding: 1.25rem;
    flex-grow: 1;
}

/* Stats section - moved to bottom */
.question-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    background: rgba(248, 250, 252, 0.5);
    border-radius: 0 0 16px 16px;
}

.stat-item {
    text-align: center;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.stat-item:hover {
    background: rgba(79, 70, 229, 0.05);
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.2rem;
    display: block;
}

.question-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
    transition: color 0.2s ease;
}

.question-title:hover {
    color: #4f46e5;
}

.question-excerpt {
    color: #64748b;
    font-size: 0.925rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Tags and categories */
.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.question-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.question-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

.question-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    font-weight: 500;
}

/* Author section */
.author-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
}

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

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.author-name {
    color: #1e293b;
    font-weight: 500;
    text-decoration: none;
}

.post-time {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Poll indicator */
.poll-badge {
    background: linear-gradient(45deg, #4f46e5, #6366f1);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.75rem;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Desktop styles - larger screens */
@media (min-width: 769px) {
    .question-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .question-content {
        flex: 1;
        padding: 1.5rem;
    }

    .question-stats {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 120px;
        padding: 1rem 0.75rem;
        border-top: none;
        border-left: 1px solid rgba(226, 232, 240, 0.7);
        border-radius: 0 16px 16px 0;
        background: rgba(248, 250, 252, 0.8);
    }

    .stat-item {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
        min-width: 80px;
    }

    .stat-item:last-child {
        margin-bottom: 0;
    }

    .stat-number {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .stat-label {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }
}

/* Mobile styles - smaller screens */
@media (max-width: 768px) {
    .question-card {
        margin-bottom: 1rem;
        flex-direction: column;
    }

    .question-stats {
        flex-direction: row;
        border-right: none;
        border-top: 1px solid rgba(226, 232, 240, 0.7);
        border-left: none;
        padding: 0.75rem;
        border-radius: 0 0 16px 16px;
    }

    .stat-item {
        padding: 0.25rem 0.5rem;
        margin-bottom: 0;
    }
}
/* Poll styles */
.poll-options {
    margin: 1.5rem 0;
}

.poll-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.poll-option:hover {
    background: #f1f5f9;
}

.poll-option-content {
    font-weight: 500;
}

.poll-option-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.poll-option-votes {
    min-width: 80px;
    text-align: right;
}

.poll-option-percentage {
    min-width: 60px;
    text-align: right;
    font-weight: 600;
    color: #4f46e5;
}

.poll-option.voted {
    background-color: rgba(79, 70, 229, 0.05);
    border-color: #4f46e5;
}

.poll-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    min-height: 28px;
}

.poll-option-text {
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    line-height: 1.5;
}

.voted-icon {
    color: #4f46e5;
    font-size: 1.1rem;
}

.poll-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 120px;
    justify-content: flex-end;
}

.percentage {
    font-weight: 600;
    color: #4f46e5;
    font-size: 1.1rem;
}

.votes {
    color: #64748b;
    font-size: 0.9rem;
    white-space: nowrap;
}

.progress {
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: #ef4444;
    transition: width 0.6s ease;
    height: 100%;
}

.progress-bar.leading {
    background: #22c55e;
}

/* Poll badge in title */
.poll-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #4f46e5, #6366f1);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.75rem;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Form styling for polls */
.poll-option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

.poll-option label {
    margin-bottom: 0;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.poll-option input[type="radio"]:checked + label {
    color: #4f46e5;
}

/* Modern Sidebar */
.sidebar-nav {
    position: sticky;
    top: 2rem;
}

.sidebar-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.menu-header {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: #f8fafc;
    color: #4f46e5;
    border-left-color: #4f46e5;
}

.menu-item.active {
    background: #f1f5f9;
    color: #4f46e5;
    border-left-color: #4f46e5;
    font-weight: 500;
}

.menu-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 1rem;
}

.menu-item span {
    flex: 1;
}

.menu-item .count {
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #64748b;
    min-width: 28px;
    text-align: center;
}

.menu-item:hover .count {
    background: #e2e8f0;
    color: #4f46e5;
}

.menu-item.active .count {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

/* Filters section */
.quick-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-button {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    font-size: 0.8125rem;
    color: #64748b;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
    min-height: 32px;
}

.filter-button:hover {
    background: #f8fafc;
    color: #4f46e5;
    border-color: #4f46e5;
}

.filter-button.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.filter-button i {
    margin-right: 0.4rem;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-filters {
        gap: 0.25rem;
    }

    .filter-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Right sidebar styling */
.right-sidebar {
    position: sticky;
    top: 2rem;
}

.tags-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tags-header {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.tags-content {
    padding: 1rem;
}

.popular-tag {
    display: inline-flex;
    align-items: center;
    margin: 0.25rem;
    padding: 0.35rem 0.8rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #64748b;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.popular-tag:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border-color: #4f46e5;
}

.tag-count {
    background: #e2e8f0;
    color: #64748b;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.popular-tag:hover .tag-count {
    background: rgba(79, 70, 229, 0.2);
    color: #4f46e5;
}

@media (max-width: 768px) {
    .right-sidebar {
        position: relative;
        margin-top: 2rem;
    }

    .tags-content {
        text-align: center;
    }

    .popular-tag {
        margin: 0.25rem;
        padding: 0.3rem 0.7rem;
        font-size: 0.8125rem;
    }
}

/* Create Question Form Styles */
.create-question-container {
    max-width: 900px;
    margin: 2rem auto;
}

.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.form-card-header {
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.form-card-header h4 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
}

.form-card-body {
    padding: 1.5rem;
}

/* Create Question Form Styles */
.create-question-container {
    max-width: 900px;
    margin: 2rem auto;
}

.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.form-card-header {
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.form-card-header h4 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
}

.form-card-body {
    padding: 1.5rem;
}

/* Question Type Selection */
.question-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.type-option {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-option:hover {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.02);
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.type-option input[type="radio"]:checked + .type-content {
    color: #4f46e5;
}

.type-option input[type="radio"]:checked + .type-content i {
    color: #4f46e5;
}

.type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.type-content i {
    font-size: 1.5rem;
    color: #94a3b8;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e293b;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* Tags Input */
.tags-input-container {
    margin-top: 0.5rem;
}

.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #1e293b;
}

.tag-remove {
    margin-left: 0.5rem;
    color: #64748b;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.tag-remove:hover {
    color: #ef4444;
}

/* Poll Options */
.poll-option {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Zmniejsz gap, jeśli to konieczne */
    margin-bottom: 0.75rem;
}

.poll-option-input {
    flex-grow: 1;
    width: 100%; /* Dodaj szerokość, aby upewnić się, że input ma odpowiednią szerokość */
}

.remove-option {
    padding: 0.5rem;
    color: #ef4444;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0.7;
}

.remove-option:hover {
    opacity: 1;
}

.poll-option-input:focus {
    border-color: #4caf50; /* Dodaj efekt fokusowania */
    outline: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Question Detail Styles */
.question-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.question-header {
    padding: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.question-meta {
    display: flex;
    gap: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.question-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.bookmark-btn {
    display: inline-flex;
    align-items: center;

    gap: 0.5rem;

    padding: 0.5rem 1rem;

    border: 1px solid #e5e7eb;

    border-radius: 8px;
    background: white;
    color: #64748b;
    transition: all 0.2s ease;
}

.bookmark-btn.bookmarked {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.action-btn {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #64748b;
}

.question-content {
    padding: 1.25rem;
    color: #334155;
    line-height: 1.6;
    max-width: 100%; /* Zapewnia, że treść nie wyjdzie poza kontener */
    word-wrap: break-word; /* Zapobiega przepełnieniu treści */
}

.question-tags {
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.question-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.question-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.question-category {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border-radius: 20px;
    font-size: 0.875rem;
}

.question-author {
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: #1e293b;
    font-weight: 500;
    text-decoration: none;
}

.post-time {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Answer Form Styles */
.answer-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin: 2rem 0;
}

.answer-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.answer-textarea {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 150px;
}

.answer-textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.answer-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.login-prompt {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.login-link {
    color: #4f46e5;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* Answers Section Styles */
.answers-section {
    margin-top: 2rem;
}

.answers-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.answer-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    padding: 1.25rem;
}

/* Voting System */
.votes-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 40px;
    padding: 0.5rem;
}


.votes-section i {
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

.votes-section .stat-number {
    font-size: 1rem;
    min-width: 20px;
    text-align: left;
}

.vote-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.vote-button:hover {
    color: #4f46e5;
    transform: scale(1.1);
}

.vote-button.voted {
    color: #4f46e5;
}

.vote-count {
    text-align: center;
    font-weight: 600;
    color: #1e293b;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.25rem 0;
}

.vote-up.voted {
    color: #22c55e;
}

.vote-down.voted {
    color: #ef4444;
}

/* Answer Content */
.answer-content {
    flex: 1;
}

.answer-text {
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.answer-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

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

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: #1e293b;
    font-weight: 500;
    text-decoration: none;
}

.answer-time {
    font-size: 0.875rem;
    color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .votes-section {
        padding: 0 0.5rem;
        margin-right: 0.5rem;
    }

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

/* Vote styles */
.vote-up {
    color: #198754; /* Bootstrap green */
}

.vote-up:hover {
    color: #157347; /* Darker shade of green */
}

.vote-down {
    color: #dc3545; /* Bootstrap red */
}

.vote-down:hover {
    color: #bb2d3b; /* Darker shade of red */
}

.vote-count {
    font-weight: bold;
    color: #495057;
    margin: 5px 0;
}

/* Profile Card Styles */
.profile-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-header {
    position: relative;
    text-align: center;
    padding: 2rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 auto 1rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}


.profile-action-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.profile-action-btn.edit {
    background: #4f46e5;
    color: white;
    border: none;
}

.profile-action-btn.edit:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.profile-action-btn.report {
    background: #ffda19;
    color: black;
    border: none;
}

.profile-action-btn.report:hover {
    background: #4338ca;
    color: white;
    transform: translateY(-1px);
}

.profile-action-btn.delete {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.profile-action-btn.delete:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.profile-avatar-change {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.profile-avatar-change:hover {
    background: #f8fafc;
    transform: scale(1.1);
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.show-more-link {
    color: #4f46e5;  /* kolor primary */
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-more-link:hover {
    color: #4338ca;  /* ciemniejszy odcień przy hover */
    text-decoration: none;
}

/* Profile Badges Section */
.badges-section {
    padding: 1.5rem;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.profile-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.profile-badge:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 0.5rem;
}

.badge-name {
    font-size: 0.75rem;
    color: #1e293b;
    text-align: center;
    font-weight: 500;
}

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

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

.activity-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.activity-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.activity-content {
    color: #334155;
    margin-bottom: 0.75rem;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #64748b;
}

/* Profile Actions */
.profile-actions {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.edit-profile-btn {
    background: #4f46e5;
    color: white;
}

.edit-profile-btn:hover {
    background: #4338ca;
}

.delete-account-btn {
    background: #fee2e2;
    color: #ef4444;
}

.delete-account-btn:hover {
    background: #fecaca;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .badge-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

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

/* Auth Pages Styles */
.auth-container {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f8fafc;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.auth-logo {
    height: 48px;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.975rem;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.google-btn {
    color: #ea4335;
}

.auth-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #4338ca;
    text-decoration: underline;
}

.auth-form .form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.auth-form .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-form .btn-primary {
    padding: 0.75rem;
    font-weight: 500;
    border-radius: 8px;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-card-body {
    padding: 1.5rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-icon i {
    font-size: 1.5rem;
    color: #4f46e5;
}

.category-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-title a:hover {
    color: #4f46e5;
}

.category-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.category-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    color: #94a3b8;
}

/* Footer Styles */
.footer {
    background-color: white;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.footer-content {
    border-bottom: 1px solid #e5e7eb;
}

.footer-brand p {
    font-size: 0.875rem;
}

.footer-header {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #4f46e5;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    background: #f8fafc;
    font-size: 0.875rem;
}

.footer-locale a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-locale a:hover,
.footer-locale a.active {
    color: #4f46e5;
}

/* User Cards */
.user-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.user-card-body {
    padding: 1.5rem;
    text-align: center;
}

.user-avatar-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    position: relative;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.user-name a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.user-name a:hover {
    color: #4f46e5;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-item {
    display: flex; /* Dodano */
    flex-direction: column; /* Ustawiono elementy w kolumnie */
    text-align: center;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4f46e5;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
}

.user-joined {
    font-size: 0.875rem;
    color: #64748b;
}

/* Filter Buttons */
.btn-filter {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #64748b;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.btn-filter:hover,
.btn-filter.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.btn-filter:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-filter:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Badge styles */
.badges-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 120px;
}

.badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4f46e5;
}

.badge-item i.fa-star {
    color: #eab308;
}

.badge-item i.fa-award {
    color: #4f46e5;
}

.badge-item i.fa-chart-line {
    color: #22c55e;
}

.badge-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.badge-date {
    display: none;
}

/* Questions Page Specific Styles */
.questions-page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.question-card-content {
    padding: 1.25rem;
}

.question-card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.75rem;
    display: block;
    transition: color 0.2s ease;
}

.question-card-title:hover {
    color: #4f46e5;
    text-decoration: none;
}

.question-card-excerpt {
    color: #64748b;
    font-size: 0.925rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.question-card-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Tags Page Specific Styles */
.tags-page-container {
    padding: 1.5rem 0;
}

.tags-page-header {
    margin-bottom: 2rem;
}

.tags-page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tag-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: rgba(79, 70, 229, 0.2);
}

.tag-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #4f46e5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tag-card:hover::before {
    opacity: 1;
}

.tag-name {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.tag-name:hover {
    background: rgba(79, 70, 229, 0.15);
    color: #4f46e5;
    text-decoration: none;
}

.tag-name i {
    margin-right: 0.5rem;
    font-size: 0.9em;
}

.tag-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.tag-stat {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.tag-stat i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.tag-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tag-last-activity {
    font-size: 0.875rem;
    color: #94a3b8;
}

.tag-last-activity i {
    margin-right: 0.5rem;
}

/* Edit Profile Page Specific Styles */
.edit-profile-container {
    padding: 2rem 0;
}

.edit-profile-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.edit-profile-header {
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.edit-profile-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0;
}

.edit-profile-avatar-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to bottom, #f8fafc, white);
}

.edit-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 auto 1rem;
    object-fit: cover;
    position: relative;
    display: inline-block;
}

.edit-profile-avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-profile-avatar-overlay:hover {
    background: #f8fafc;
    border-color: #4f46e5;
    transform: scale(1.1);
}

.edit-profile-form-section {
    padding: 2rem;
}

.edit-profile-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.edit-profile-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.edit-profile-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.edit-profile-input {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.2s ease;
}

.edit-profile-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.edit-profile-danger-zone {
    background: #fef2f2;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #fee2e2;
}

.edit-profile-danger-title {
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Bookmark Page Styles */
.bookmarks-container {
    padding: 1.5rem 0;
}

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

.bookmarks-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bookmarks-title .count {
    font-size: 1rem;
    color: #64748b;
    font-weight: normal;
}

.bookmark-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.bookmark-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.1);
}

.bookmark-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.bookmark-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.2s ease;
}

.bookmark-title:hover {
    color: #4f46e5;
}

.bookmark-meta {
    font-size: 0.875rem;
    color: #64748b;
}

.bookmark-stats {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
}

.bookmark-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.bookmark-stat-item i {
    color: #94a3b8;
}

.bookmark-tags {
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
}

.bookmark-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    font-weight: 500;
}

.bookmark-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.bookmark-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

.bookmark-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bookmark-time {
    color: #64748b;
    font-size: 0.875rem;
}

.remove-bookmark-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #ef4444;
    background: #fee2e2;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.remove-bookmark-btn:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.remove-bookmark-btn i {
    font-size: 0.9em;
}

/* Empty state */
.empty-bookmarks {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.empty-bookmarks-icon {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.empty-bookmarks-text {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.browse-questions-btn {
    padding: 0.75rem 1.5rem;
    background: #4f46e5;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.browse-questions-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

/* Pagination */
.bookmarks-pagination {
    margin-top: 2rem;
}

.page-link {
    color: #4f46e5;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #f8fafc;
    color: #4338ca;
    border-color: #cbd5e1;
}

.page-item.active .page-link {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bookmark-header {
        flex-direction: column;
    }

    .bookmark-stats {
        flex-wrap: wrap;
    }

    .bookmark-stat-item {
        min-width: 45%;
    }
}

@media (max-width: 480px) {
    .bookmark-stat-item {
        min-width: 100%;
    }

    .bookmark-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .remove-bookmark-btn {
        justify-content: center;
    }
}

.accepted-answer {
    border: 2px solid #28a745;
    background-color: #f8fff9;
}

.accepted-answer-badge {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.accepted-answer-badge i {
    font-size: 1.2em;
}

.accept-answer-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.answer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* XP styles */
.xp-progress-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.xp-progress-section .progress {
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.xp-progress-section .progress-bar {
    transition: width 0.6s ease;
    background: linear-gradient(45deg, #28a745, #20c997);
}

.xp-progress-section h6 {
    color: #495057;
    font-weight: 600;
}

.xp-progress-section .text-muted {
    font-size: 0.875rem;
}

/* Add animation for progress bar */
@keyframes progressAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.xp-progress-section .progress-bar {
    background-size: 200% auto;
    animation: progressAnimation 2s linear infinite;
}

.badge-anonymous {
    background: linear-gradient(45deg, #4f46e5, #6366f1);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.anonymous-answer {
    border-left: 4px solid #4f46e5;
    background: rgba(79, 70, 229, 0.02);
    padding-left: 1rem;
}

.anonymous-user {
    background: linear-gradient(to right, rgba(79, 70, 229, 0.05), transparent);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.comment-item {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content-wrapper {
    flex: 1;
}

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

.comment-author {
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
}

.comment-time {
    font-size: 0.75rem;
    color: #64748b;
}

.comment-text {
    font-size: 0.875rem;
    color: #334155;
}

.comments-section {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.comment-form .input-group {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    padding: 0.25rem;
    background: #fff;
}

.comment-input {
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    flex: 1;
}

.comment-input:focus {
    outline: none;
}

.btn-send-comment {
    border: none;
    background: #4f46e5;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-send-comment:hover {
    background: #4338ca;
}

.show-comments-btn {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    background: none;
    border: none;
    display: none; /* Domyślnie ukryty */
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.show-comments-btn:hover {
    color: #4f46e5;
}

.comments-count {
    font-weight: 500;
    color: #4f46e5;
}

.question-image {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.question-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.post-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.image-badge {
    background: #4f46e5;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
    display: inline-block;
}

.comment-item {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-actions {
    margin-left: auto;
}

.comment-actions button {
    padding: 0;
    font-size: 0.875rem;
}

.comment-edit-form {
    margin-top: 8px;
}
.comment-edit-form .input-group {
    gap: 5px;
}

.comment-edit-input {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
.comment-author {
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
}

.comment-time {
    color: #64748b;
    font-size: 0.875rem;
}
.comment-text {
    color: #334155;
    font-size: 0.925rem;
}



.comment-author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.ai-chat-history {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8fafc;
}

.max-w-75 {
    max-width: 75%;
}

.ai-chat-history .bg-light {
    background-color: #e2e8f0 !important;
}


