/* CSS/userAuthorisation.css */

.admin-panel-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.admin-panel-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
}

.admin-panel-header:hover {
    background: #f1f3f5;
}

.key-status {
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-status.used {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.key-status.available {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid #28a745;
}

/* =========================================
   ADMIN COMPACT MODE
   ========================================= */
#users-list.admin-compact-mode {
    gap: 2px !important;
}

.admin-compact-mode .list-item-container {
    border-radius: 2px !important;
}

.admin-compact-mode .admin-user-header {
    padding: 4px 10px !important;
}

.admin-compact-mode .username-text {
    font-size: 14px !important; 
}

.admin-compact-mode .email-text {
    font-size: 11px !important; 
}

/* =========================================
   ADMIN QUICK EDIT INPUTS (No Layout Shift)
   ========================================= */
.admin-quick-input {
    background: transparent;
    border: 1px solid transparent; /* Transparent border prevents jumping */
    border-bottom: 1px dashed #ccc;
    border-radius: 2px;
    padding: 0 4px;
    margin: 0;
    font-size: inherit;
    width: 100%;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    color: inherit;
    box-sizing: border-box;
}

.admin-quick-input:focus {
    background: #fff;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* =========================================
   INLINE DELETE BUTTON
   ========================================= */
.admin-delete-user-btn {
    background: rgba(220, 53, 69, 0.1);
    border: none;
    color: #dc3545;
    cursor: pointer;
    border-radius: 4px;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 14px;
    margin-left: 15px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-delete-user-btn:hover {
    background: #dc3545;
    color: white;
}

/* Dark Theme Support */
body.theme-dark .admin-panel-card {
    background: #1e1e1e;
    border-color: #333;
}

body.theme-dark .admin-panel-header {
    background: #2d2d2d;
    border-color: #333;
}

body.theme-dark .admin-panel-header:hover {
    background: #383838;
}

body.theme-dark .admin-panel-header h3 {
    color: #ffffff !important;
}

body.theme-dark .admin-panel-header .chevron {
    color: #00e5ff !important;
}

body.theme-dark .admin-quick-input {
    background: transparent;
    color: #fff;
    border-bottom-color: #555;
}

body.theme-dark .admin-quick-input:focus {
    background: #2d2d2d;
}