/* Custom CSS Styles for FoxFinds Admin Dashboard */

/* Global Styles */
:root {
    --brand-orange: #ff7a00;
    --brand-orange-light: #ff9933;
    --brand-orange-dark: #e66a00;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-10px); }
    70% { transform: translateY(-5px); }
    90% { transform: translateY(-2px); }
}

/* Login Modal */
#loginModal .bg-white {
    animation: fadeIn 0.3s ease-out;
}

#loginModal.show .bg-white {
    transform: scale(1);
    opacity: 1;
}

/* Navigation Tabs */
.nav-tab {
    position: relative;
    transition: all 0.3s ease;
    color: #6b7280;
    border-bottom-color: transparent;
}

.nav-tab:hover {
    color: #374151;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 122, 0, 0.05) 100%);
}

.nav-tab.active {
    color: var(--brand-orange);
    border-bottom-color: var(--brand-orange);
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 122, 0, 0.1) 100%);
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-orange);
    transition: width 0.3s ease;
}

.nav-tab:hover::after {
    width: 100%;
}

.nav-tab.active::after {
    width: 100%;
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.4s ease-out;
}

/* KPI Cards */
.kpi-card {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.kpi-card:hover::before {
    left: 100%;
}

/* Widget Containers */
.widget-container {
    position: relative;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.widget-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.widget-collapse {
    transition: transform 0.3s ease;
}

.widget-container.collapsed .widget-collapse {
    transform: rotate(180deg);
}

.widget-container.collapsed .widget-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.widget-content {
    max-height: 1000px;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.skeleton {
    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; }
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
    user-select: none;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-orange-dark), var(--brand-orange));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

/* Forms */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--brand-orange);
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

/* Tables */
.table-row {
    transition: all 0.2s ease;
}

.table-row:hover {
    background-color: rgba(255, 122, 0, 0.05);
    transform: translateX(2px);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background-color: #fef3c7;
    color: #92400e;
}

.status-temporary {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-permanent {
    background-color: #fecaca;
    color: #b91c1c;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.notification.error {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.notification.warning {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .nav-tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .kpi-card {
        padding: 1rem;
    }
    
    .widget-container {
        padding: 1rem;
    }
}

/* User Menu */
#userDropdown {
    animation: fadeIn 0.2s ease-out;
}

/* Error States */
.error-state {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

/* Progress Bars */
.progress-bar {
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-light));
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
}

/* Chart Animations */
.chart-enter {
    animation: slideIn 0.5s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus States */
.focus-visible:focus {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #374151;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .widget-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }
} 