/* Base & Variables */
:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --gradient-1: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.5);

    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Background Abstract Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 15s infinite alternate ease-in-out;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Main Layout & Glassmorphism */
.glass-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.header-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Bar */
.search-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    width: 100%;
}

input[type="text"] {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

input[type="text"]:focus {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

/* Document List */
.document-list {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doc-list-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), var(--shadow-glow);
    border-color: rgba(255, 255, 255, 0.2);
}

.doc-link {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    color: var(--text-primary);
    text-decoration: none;
    gap: 15px;
}

.doc-icon {
    flex-shrink: 0;
    color: var(--accent-color);
    opacity: 0.8;
}

.doc-title-text {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Results Info */
.results-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    margin-top: 10px;
    font-weight: 500;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.pagination-label {
    margin-right: 8px;
    color: var(--text-primary);
}

.page-link {
    cursor: pointer;
    color: var(--accent-color);
    padding: 0 8px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.page-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.page-link.active {
    color: var(--text-primary);
    cursor: default;
    text-decoration: none;
    font-weight: 700;
}

.page-separator {
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
}

.page-ellipsis {
    color: var(--text-secondary);
    padding: 0 6px;
    letter-spacing: 1px;
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.status-message {
    text-align: center;
    padding: 40px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: var(--radius-md);
    border: 1px dashed var(--glass-border);
    margin: 40px 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}