* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.admin-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 28px;
    color: #00b894;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.admin-email {
    color: #ffa502;
    font-weight: 500;
}

.btn-back, .btn-logout {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-back {
    background: #0984e3;
    color: white;
}

.btn-back:hover {
    background: #0652DD;
}

.btn-logout {
    background: #d63031;
    color: white;
}

.btn-logout:hover {
    background: #c0392b;
}

/* Main Content */
.admin-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
}

section h2 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 22px;
    border-bottom: 2px solid #00b894;
    padding-bottom: 10px;
}

/* User List */
.user-list {
    max-height: 600px;
    overflow-y: auto;
}

.user-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.user-email {
    font-weight: 600;
    font-size: 16px;
    color: #74b9ff;
}

.user-status {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-verified { background: #00b894; }
.status-pending { background: #ffa502; }
.status-accepted { background: #6c5ce7; }

.user-keys {
    margin: 10px 0;
    font-size: 12px;
    color: #dfe6e9;
}

.key-item {
    margin: 5px 0;
    word-break: break-all;
}

.key-label {
    font-weight: 600;
    color: #ffeaa7;
}

.user-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-accept, .btn-delete-user {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-accept {
    background: #00b894;
    color: white;
}

.btn-accept:hover {
    background: #00a383;
}

.btn-delete-user {
    background: #d63031;
    color: white;
}

.btn-delete-user:hover {
    background: #c0392b;
}

/* Messages Section */
.filter-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-primary, .btn-danger {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #0984e3;
    color: white;
}

.btn-primary:hover {
    background: #0652DD;
}

.btn-danger {
    background: #d63031;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.message-list {
    max-height: 600px;
    overflow-y: auto;
}

.message-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-content {
    flex: 1;
}

.message-sender {
    font-weight: 600;
    color: #74b9ff;
    margin-bottom: 5px;
}

.message-text {
    color: #dfe6e9;
    font-size: 14px;
    word-break: break-word;
}

.message-time {
    font-size: 11px;
    color: #b2bec3;
    margin-top: 5px;
}

.btn-delete-message {
    padding: 6px 12px;
    background: #d63031;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-delete-message:hover {
    background: #c0392b;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-main {
        grid-template-columns: 1fr;
    }
}
