:root {
    --primary-color: #4a86f7;
    --bg-color: #f8f9fc;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #888888;
    --border-color: #eeeeee;
    --tab-inactive: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding-top: 60px;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Tabs */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    color: var(--text-main);
}

.tab-btn:hover {
    background: #f0f4ff;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(74, 134, 247, 0.3);
}

/* Search */
.search-container {
    margin-bottom: 25px;
}

.search-container input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
    background: white;
    color: var(--text-main);
}

.search-container input:focus {
    border-color: var(--primary-color);
}

.search-container input::placeholder {
    color: var(--text-muted);
}

/* Mobile hint */
.mobile-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 13px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .mobile-hint {
        display: flex;
    }
}

/* Table */
.table-wrapper {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 15px 20px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.admin-table tbody tr {
    transition: background-color 0.2s;
}

.admin-table tbody tr:hover {
    background-color: #f0f4ff;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.nick {
    font-weight: 600;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #eef3ff;
    color: #4a86f7;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Date */
.date-text {
    color: #666;
    font-size: 14px;
}

/* VK Button */
.vk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.vk-btn:hover {
    transform: scale(1.1);
}

/* Last update */
.last-update {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.35s ease forwards;
}

@media (max-width: 600px) {
    .tabs-container {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}
