/* FriendMap - Admin Styles */

main {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.form-group small {
    display: block;
    color: #888;
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

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

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

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.error {
    color: #e74c3c;
    margin-top: 0.5rem;
}

.success {
    color: #27ae60;
    margin-top: 0.5rem;
}

.user-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.user-list th,
.user-list td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.user-list th {
    font-weight: 600;
    color: #555;
    background: #f8f9fa;
}

.user-list tr:hover {
    background: #f8f9fa;
}

.nav-links {
    margin-top: 1rem;
}

.nav-links a {
    color: #3498db;
    text-decoration: none;
}

.nav-links a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

#invite-qr {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

#invite-qr img {
    max-width: 100%;
}

.form-group select[multiple] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    min-height: 80px;
}

/* Invite status badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

.badge-valid {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-expired {
    background: #fff3cd;
    color: #856404;
}

.badge-none {
    background: #e2e3e5;
    color: #383d41;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.pending-requests-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.pending-requests-table th,
.pending-requests-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pending-requests-table th {
    font-weight: 600;
    color: #555;
    background: #f8f9fa;
}

.pending-requests-table tr:hover {
    background: #f8f9fa;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
}
