/* Fish Admin Panel - Custom Styles */
:root {
    --fish-primary: #2563eb;
    --fish-primary-dark: #1d4ed8;
    --fish-secondary: #64748b;
    --fish-success: #16a34a;
    --fish-danger: #dc2626;
    --fish-warning: #d97706;
    --fish-info: #0891b2;
    --fish-sidebar-bg: #1e293b;
    --fish-sidebar-hover: #334155;
    --fish-sidebar-active: #2563eb;
    --fish-sidebar-text: #94a3b8;
    --fish-sidebar-width: 260px;
}

body { background-color: #f1f5f9; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

/* Sidebar */
.fish-sidebar {
    position: fixed; top: 0; left: 0; width: var(--fish-sidebar-width);
    height: 100vh; background: var(--fish-sidebar-bg); z-index: 1000;
    transition: transform 0.3s ease; overflow-y: auto;
}
.fish-sidebar .brand { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.fish-sidebar .brand h4 { color: #fff; margin: 0; font-weight: 700; font-size: 1.25rem; }
.fish-sidebar .brand small { color: var(--fish-sidebar-text); font-size: 0.75rem; }
.fish-sidebar .nav-section { padding: 0.75rem 0; }
.fish-sidebar .nav-section-title { padding: 0.5rem 1.5rem; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: #475569; font-weight: 600; }
.fish-sidebar .nav-link { display: flex; align-items: center; padding: 0.6rem 1.5rem; color: var(--fish-sidebar-text); text-decoration: none; transition: all 0.2s; font-size: 0.875rem; border-left: 3px solid transparent; }
.fish-sidebar .nav-link:hover { background: var(--fish-sidebar-hover); color: #e2e8f0; }
.fish-sidebar .nav-link.active { background: rgba(37,99,235,0.15); color: #fff; border-left-color: var(--fish-sidebar-active); }
.fish-sidebar .nav-link i { width: 20px; margin-right: 0.75rem; font-size: 0.9rem; text-align: center; }

/* Main Content */
.fish-main { margin-left: var(--fish-sidebar-width); min-height: 100vh; }

/* Top Navbar */
.fish-topbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 999; }
.fish-topbar .breadcrumb { margin: 0; background: none; padding: 0; font-size: 0.875rem; }

/* Content Area */
.fish-content { padding: 1.5rem; }

/* Stat Cards */
.stat-card { border: none; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--fish-secondary); margin-top: 0.25rem; }

/* Cards */
.fish-card { border: none; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.fish-card .card-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 1rem 1.25rem; font-weight: 600; }

/* Tables */
.fish-table { font-size: 0.875rem; }
.fish-table thead th { background: #f8fafc; border-bottom: 2px solid #e2e8f0; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #475569; white-space: nowrap; }
.fish-table tbody td { vertical-align: middle; padding: 0.75rem; }
.fish-table tbody tr:hover { background: #f8fafc; }

/* Status Badges */
.badge-draft { background: #e2e8f0; color: #475569; }
.badge-scheduled { background: #dbeafe; color: #1d4ed8; }
.badge-running { background: #dcfce7; color: #16a34a; }
.badge-paused { background: #fef3c7; color: #d97706; }
.badge-completed { background: #f0fdf4; color: #15803d; }
.badge-cancelled { background: #fee2e2; color: #dc2626; }
.badge-sent { background: #dbeafe; color: #2563eb; }
.badge-pending { background: #f1f5f9; color: #64748b; }
.badge-opened { background: #fef3c7; color: #d97706; }
.badge-clicked { background: #ffedd5; color: #ea580c; }
.badge-submitted { background: #fee2e2; color: #dc2626; }
.badge-reported { background: #dcfce7; color: #16a34a; }

/* Buttons */
.btn-fish { background: var(--fish-primary); color: #fff; border: none; }
.btn-fish:hover { background: var(--fish-primary-dark); color: #fff; }

/* Flash messages */
.flash-message { border-left: 4px solid; border-radius: 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .fish-sidebar { transform: translateX(-100%); }
    .fish-sidebar.show { transform: translateX(0); }
    .fish-main { margin-left: 0; }
}

/* Chart containers */
.chart-container { position: relative; height: 300px; }

/* Score colors */
.score-positive { color: var(--fish-success); font-weight: 600; }
.score-negative { color: var(--fish-danger); font-weight: 600; }
.score-neutral { color: var(--fish-secondary); }

/* Progress bars */
.progress-thin { height: 6px; border-radius: 3px; }

/* Empty states */
.empty-state { padding: 3rem 1rem; text-align: center; color: #94a3b8; }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; }

/* Template preview */
.template-preview { border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 1.5rem; background: #fff; max-height: 400px; overflow-y: auto; }

/* Login page */
.fish-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }
.fish-login .login-card { width: 100%; max-width: 420px; border-radius: 1rem; box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
