/* Custom styles for BerrryComputer */

.glassmorphism {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.corporate-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.progress-bar-animation {
    transition: width 0.5s ease-in-out;
}

.vote-button-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.danger-pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(233, 69, 96, 0);
    }
}

.safe-glow {
    box-shadow: 0 0 20px rgba(15, 76, 117, 0.3);
}

.corporate-text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Loading spinner for avatar images */
.avatar-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.2s ease-in-out;
}

/* Custom scrollbar for a more corporate look */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #1a1a2e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16213e;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid {
        grid-column-gap: 1rem;
        grid-row-gap: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bg-gray-50 {
        background-color: #0f172a;
    }
    
    .bg-white {
        background-color: #1e293b;
        color: #f8fafc;
    }
    
    .text-gray-600 {
        color: #94a3b8;
    }
    
    .text-gray-700 {
        color: #cbd5e1;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}