/* Admin Panel Styles */
#admin-panel {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 400px;
    height: 500px;
    background-color: rgba(20, 20, 20, 0.95);
    border: 2px solid #8b0000;
    /* Dark Red for Admin */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(139, 0, 0, 0.3);
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    z-index: 2000;
    /* Above everything */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 5px;
}

#admin-panel.hidden {
    display: none !important;
}

.admin-header {
    background-color: #500000;
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    /* Indicates draggable */
    border-bottom: 1px solid #8b0000;
}

.admin-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: #ffcccc;
}

.admin-close:hover {
    color: white;
}

.admin-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.admin-tab {
    padding: 5px 10px;
    background-color: #333;
    cursor: pointer;
    border-radius: 3px 3px 0 0;
    font-size: 0.9rem;
}

.admin-tab.active {
    background-color: #8b0000;
    color: white;
}

.admin-section {
    display: none;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.admin-section.active {
    display: flex;
}

.admin-user-list {
    background-color: #111;
    border: 1px solid #444;
    flex: 1;
    overflow-y: auto;
    padding: 5px;
    font-size: 0.9rem;
}

.admin-user-item {
    padding: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.admin-user-item:hover {
    background-color: #333;
}

.admin-user-item.selected {
    background-color: #500000;
    color: white;
}

.admin-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.admin-btn {
    background-color: #333;
    border: 1px solid #555;
    color: white;
    padding: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.admin-btn:hover {
    background-color: #555;
}

.admin-btn.danger {
    background-color: #8b0000;
    border-color: #a00000;
}

.admin-btn.danger:hover {
    background-color: #a00000;
}

.admin-input-group {
    display: flex;
    gap: 5px;
}

.admin-input {
    flex: 1;
    background: #222;
    border: 1px solid #444;
    color: white;
    padding: 4px;
}