:root {
    --primary-color: #00E5FF;
    --secondary-color: #7C4DFF;
    --bg-dark: #120A26;
    --card-bg: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle at top right, #2a1b5e 0%, #120A26 60%, #000000 100%);
    min-height: 100vh;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

/* Background Image Overlay */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-image: url('/static/img/bg-main.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: screen;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Decorative Elements */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}
.orb-1 { top: -50px; right: -50px; width: 300px; height: 300px; background: rgba(124, 77, 255, 0.2); }
.orb-2 { bottom: 100px; left: -100px; width: 200px; height: 200px; background: rgba(0, 229, 255, 0.1); }

/* Shared card container (for simple pages via base.html) */
.container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 30px auto;
    position: relative;
    z-index: 1;
}

h1 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 24px;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #5C3DBF 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.3);
}

.icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFFFFF 0%, #00E5FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-hz {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: var(--secondary-color);
    -webkit-text-fill-color: var(--secondary-color);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 10, 38, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    display: flex;
    gap: 15px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.nav a.active {
    color: var(--primary-color);
    background: rgba(0, 229, 255, 0.1);
}

@media (max-width: 768px) {
    .nav { display: none; }
}

/* === Pagination === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.pagination a:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination span.current {
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    border: 1px solid var(--primary-color);
}

.pagination span.dots {
    color: var(--text-muted);
    border: none;
    background: none;
}

.pagination-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

/* === Date filter bar === */
.date-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.date-filter input[type="date"] {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    color-scheme: dark;
}

.date-filter input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.per-page-select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
}

.per-page-select:focus {
    outline: none;
    border-color: var(--primary-color);
}
