/* General styles */
body {
    background-color: #eaf0f8;
    color: #333;
}

/* Navbar */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 40px;
}

/* Search bar */
.form-control {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.6rem 1rem;
}

.form-control:focus {
    background-color: #fff;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 2rem 2rem;
    padding: 4rem 0;
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    color: #fc757d;
    font-size: 1.25rem;
}

/* Feature cards */
.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

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

/* Sidebar */
.list-group-item {
    border: none;
    padding: 0.8rem 1rem;
    color: #495057;
    background-color: transparent;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.list-group-item.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    border: none;
}

/* Questions list */
.question-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.question-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.question-stats {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid #e9ecef;
}

.question-content {
    padding: 1rem;
}

.question-title {
    color: #212529;
    text-decoration: none;
    font-weight: 600;
}

.question-title:hover {
    color: #0d6efd;
}

.question-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Tags */
.tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.tag:hover {
    background-color: #dee2e6;
    color: #212529;
}

.badge {
    transition: background-color 0.2s ease;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    font-weight: 500;
}

.badge:hover {
    background-color: #e9ecef !important;
}

/* Buttons */
.btn-primary {
    padding: 0.5rem 1.5rem;
}

.btn-outline-secondary {
    border-color: #dee2e6;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #0d6efd;
}

.btn-group .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-group .btn.active {
    background-color: #0d6efd;
    color: white;
}

/* User profile elements */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.author-info img {
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-info {
    font-size: 0.875rem;
}

/* Voting buttons */
.vote-button {
    background: none;
    border: none;
    color: #6c757d;
    padding: 0.25rem;
}

.vote-button:hover {
    color: #0d6efd;
}

.vote-count {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.stats-counter {
    font-weight: bold;
    color: #0d6efd;
}

/* Card modifications */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-body {
    padding: 1.5rem;
}

.card-title a {
    font-weight: 600;
}

.card-title a:hover {
    color: #0d6efd !important;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    font-weight: 600;
}

/* Poll styling */
.poll-options {
    margin: 1rem 0;
}

.poll-option {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    transition: background-color 0.2s ease;
}

.poll-option:hover {
    background-color: #e9ecef;
}

.poll-option .progress {
    background-color: #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.poll-option .progress-bar {
    transition: width 0.6s ease;
}

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

.poll-option small {
    font-size: 0.875rem;
}

/* Utilities */
.text-primary {
    color: #0d6efd !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Loading animation */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
        border-radius: 0 0 1rem 1rem;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .badge {
        padding: 0.4rem 0.8rem;
    }
}

/* Dodatkowe style dla sekcji statystyk */
.bg-custom {
    background-color: #eaf0f8;
}

/* Karty - niestandardowe kolory tła */
.bg-card-1 {
    background-color: #f8f9fa; /* Jasnoszary */
}
.bg-card-2 {
    background-color: #e7f7e7; /* Jasnozielony */
}
.bg-card-3 {
    background-color: #fff3cd; /* Jasnożółty */
}
.bg-card-4 {
    background-color: #f8d7da; /* Jasnoczerwony */
}

/* Styl dla kart */
.custom-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtelny cień */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efekt najechania */
.custom-card:hover {
    transform: translateY(-5px); /* Delikatne podniesienie */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Mocniejszy cień */
}

/* Statystyki */
.stats-counter {
    font-weight: bold;
    color: #333;
}

/* Ikony */
.custom-card i {
    color: inherit; /* Dopasowanie koloru ikony */
}