/* Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #070707;
    color: #fff;
    line-height: 1.6;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #111;
    border-right: 1px solid #ff0080;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-header h2 {
    color: #ff0080;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu li a {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: #ff0080;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.4);
}

.sidebar-menu li a.logout {
    margin-top: auto;
    border: 1px solid #ff4d00;
    color: #ff4d00;
}

.sidebar-menu li a.logout:hover {
    background: #ff4d00;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 77, 0, 0.4);
}

/* Main Content Area */
.content-area {
    flex-grow: 1;
    padding: 40px;
    background: #0a0a0a;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.page-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #222;
    padding-bottom: 10px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #111;
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid #222;
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 15px;
}

.stat-card p {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff0080;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
}

.section-header h2 {
    color: #ff0080;
}

.btn-clear {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ff4d00;
    color: #ff4d00;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #ff4d00;
    color: #fff;
}

/* Table Design */
.table-responsive {
    overflow-x: auto;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
}

.log-table th,
.log-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.log-table th {
    background: #151515;
    color: #ff0080;
    font-weight: bold;
}

.log-table tbody tr:hover {
    background: #181818;
}

/* Admin Auth Overlay page */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-box {
    background: #111;
    border: 1px solid #ff0080;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.2);
}

.auth-box h2 {
    color: #ff0080;
    margin-bottom: 25px;
}

.auth-box input {
    width: 100%;
    padding: 12px;
    background: #050505;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
}

.auth-box input:focus {
    outline: none;
    border-color: #ff0080;
}

.auth-box button {
    width: 100%;
    padding: 12px;
    background: #ff0080;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-box button:hover {
    background: #ff4d00;
}
