@import url('vars.css');

/* Global Admin Stilleri */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin: 0;
    font-weight: 500;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--border-gold);
    border-radius: 4px;
}

/* Layout */
.admin-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(18, 18, 43, 0.95);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.sidebar-header {
    padding: 0 24px 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.sidebar-header .logo-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.sidebar-header h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-top: 10px;
}

.sidebar-header span {
    font-size: 0.8rem;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-size: 1rem;
}

.nav-item i {
    font-size: 1.4rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(75, 155, 155, 0.2) 0%, transparent 100%);
    color: var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 0%, rgba(75, 155, 155, 0.05) 0%, transparent 50%);
    overflow-y: auto;
}

.top-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(26, 26, 62, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 5;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    width: 300px;
}

.search-bar i {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0 10px;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
}

.page-content {
    padding: 40px;
}

.page-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dark));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    filter: brightness(1.2);
    box-shadow: 0 4px 15px rgba(75, 155, 155, 0.3);
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Tables */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background: rgba(0, 0, 0, 0.2);
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.reader-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reader-cell img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-busy {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.status-inactive {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.action-btns {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
}