/* Admin Panel Styles */

.admin-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.admin-header .admin-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-user {
    background: #f0f4ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    padding-bottom: 3rem;
}

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.admin-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
}

/* Invitation Form */
.invitation-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-help {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #888;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f0f4ff;
    color: #667eea;
}

.btn-secondary:hover {
    background: #e0e8ff;
}

/* Result Messages */
.success-message,
.error-message {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.success-message {
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #166534;
}

.error-message {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    color: #991b1b;
}

.success-message h3,
.error-message h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.invitation-details {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.invitation-details p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.code-display {
    background: #f8fafc;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #667eea;
    letter-spacing: 2px;
    border: 2px dashed #667eea;
}

.warning-note {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #92400e;
}

/* Invitations List */
.invitations-list {
    display: grid;
    gap: 1rem;
}

.invitation-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s;
}

.invitation-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.invitation-item.status-pending {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.invitation-item.status-accepted {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.invitation-item.status-expired {
    border-left-color: #ef4444;
    background: #fef2f2;
    opacity: 0.7;
}

.invitation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.invitation-header strong {
    font-size: 1.05rem;
    color: #333;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-accepted {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.invitation-item .invitation-details {
    background: white;
    padding: 0.75rem;
    margin: 0;
}

.invitation-item .invitation-details p {
    margin: 0.4rem 0;
    font-size: 0.9rem;
    color: #666;
}

.invitation-item code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #667eea;
}

.no-data,
.loading {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
}

/* Admin Navigation */
.admin-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header .admin-container {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-section {
        padding: 1.5rem;
    }

    .invitation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .code-display {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}
