/* Custom styles for Flag Management System */

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

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

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

.dark ::-webkit-scrollbar-track {
    background: #374151;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Navigation active state */
.nav-item.active {
    background-color: #3b82f6 !important;
    color: white !important;
}

.dark .nav-item.active {
    background-color: #3b82f6 !important;
    color: white !important;
}

/* Hover effects */
.nav-item:hover {
    transform: translateX(4px);
}

/* Card hover effects */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark .card-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Button animations */
button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Modal animations */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

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

/* Loading animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Status badges */
.status-open {
    background-color: #fef3c7;
    color: #92400e;
}

.dark .status-open {
    background-color: #451a03;
    color: #fbbf24;
}

.status-closed {
    background-color: #d1fae5;
    color: #065f46;
}

.dark .status-closed {
    background-color: #064e3b;
    color: #34d399;
}

/* Table styles */
.table-row:hover {
    background-color: #f9fafb;
}

.dark .table-row:hover {
    background-color: #374151;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Custom alert styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}

.dark .alert-success {
    background-color: #052e16;
    color: #4ade80;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.dark .alert-error {
    background-color: #450a0a;
    color: #f87171;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #d97706;
}

.dark .alert-warning {
    background-color: #451a03;
    color: #fbbf24;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 50;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

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

