/* Modern Dark Theme Variables */
:root {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --accent-color: #10b981; /* Emerald */
    --danger-color: #ef4444;
    --border-color: #334155;
    --card-radius: 16px;
    --transition: all 0.2s ease-in-out;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}

/* Navbar */
.navbar {
    background-color: rgba(30, 41, 59, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Forms */
.form-control, .form-select {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-input);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Utilities */
.text-muted {
    color: var(--text-secondary) !important;
}

.table {
    color: var(--text-primary);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    color: var(--text-primary);
    background-color: rgba(255,255,255,0.02);
    box-shadow: none;
}

.table td, .table th {
    border-color: var(--border-color);
    padding: 1rem;
    vertical-align: middle;
}

/* Specific Page Styles */
.hero-search {
    padding: 3rem 0;
    text-align: center;
}

.search-input-lg {
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
}

.stat-card {
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.list-group-item {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Floating Telegram Button */
.telegram-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.telegram-icon {
    width: 60px;
    height: 60px;
    background-color: #24A1DE;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(36, 161, 222, 0.4);
    transition: all 0.3s ease;
}

.telegram-icon i {
    margin-right: 2px; /* Visual centering for plane icon */
    margin-top: 2px;
}

.telegram-label {
    background-color: #fff;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-left: 15px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    pointer-events: none;
}

.telegram-float:hover .telegram-label {
    opacity: 1;
    transform: translateX(0);
}

.telegram-float:hover .telegram-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(36, 161, 222, 0.6);
}
