/* Custom styles for Civic Issue Platform */
:root {
    --primary-color: #0066cc;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}

/* Utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading animation */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.text-loader span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    animation: bounce 1s infinite;
    display: inline-block;
}

.text-loader span:nth-child(2) { animation-delay: 0.1s; }
.text-loader span:nth-child(3) { animation-delay: 0.2s; }
.text-loader span:nth-child(4) { animation-delay: 0.3s; }
.text-loader span:nth-child(5) { animation-delay: 0.4s; }
.text-loader span:nth-child(6) { animation-delay: 0.5s; }
.text-loader span:nth-child(7) { animation-delay: 0.6s; }
.text-loader span:nth-child(8) { animation-delay: 0.7s; }
.text-loader span:nth-child(9) { animation-delay: 0.8s; }
.text-loader span:nth-child(10) { animation-delay: 0.9s; }

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

/* Mobile responsive utilities */
@media (max-width: 768px) {
    .display-5 { font-size: 2rem; }
    .display-6 { font-size: 1.5rem; }
    .lead { font-size: 1rem; }
}