/**
 * Styles for Friend Request UI Components
 */

.pending-requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.pending-request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: background-color 0.2s;
}

.pending-request-item:hover {
    background-color: #f0f0f0;
}

.pending-request-item.sent-item {
    background-color: #f5f5f5;
    border-left: 4px solid #ff9800;
}

.request-info {
    flex: 1;
}

.request-info strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.request-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.request-info strong {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.request-info p.status-pending {
    color: #ff9800;
    font-weight: 500;
}

.request-info strong.status-pending {
    color: #ff9800;
    font-weight: 500;
}

.request-actions {
    display: flex;
    gap: 8px;
}

.request-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.request-actions .btn-accept {
    background-color: #4caf50;
    color: white;
}

.request-actions .btn-decline {
    background-color: #f44336;
    color: white;
}

.btn-friend-request {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    transition: all 0.2s ease;
}

.btn-friend-request:not(.pending):not(.accepted):not(:disabled) {
    color: #2196f3;
    background-color: rgba(33, 150, 243, 0.1) !important;
    border: 1px solid rgba(33, 150, 243, 0.3) !important;
    cursor: pointer;
}

.btn-friend-request:not(.pending):not(.accepted):not(:disabled):hover {
    background-color: rgba(33, 150, 243, 0.2) !important;
    border-color: #2196f3 !important;
    transform: translateY(-1px);
}

.btn-friend-request.pending {
    color: #ff9800;
    background-color: rgba(255, 152, 0, 0.15) !important;
    border: 1px solid rgba(255, 152, 0, 0.3) !important;
    cursor: not-allowed;
}

.badge-friends {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
    cursor: default;
}

.btn-friend-request i, .badge-friends i {
    width: 16px;
    height: 16px;
}

.custom-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.custom-alert-card {
    background: #1c2028;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: alertPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes alertPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.alert-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 155, 240, 0.1);
    color: var(--primary);
}

.alert-icon svg { width: 32px; height: 32px; }

.alert-success .alert-icon { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.alert-error .alert-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.custom-alert-card h3 { margin-bottom: 12px; font-size: 1.25rem; color: #fff; }
.custom-alert-card p { color: var(--text-dim); margin-bottom: 25px; line-height: 1.6; }

.btn-alert-confirm {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}

.btn-alert-confirm:hover { filter: brightness(1.2); }

/* ALERT STYLES */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    display: none;
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.active {
    display: block;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-left-color: var(--success);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-left-color: var(--error);
}

.alert-info {
    background-color: rgba(29, 155, 240, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 550px;
    box-shadow: var(--shadow);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#editEventModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

#editEventModal .card {
    width: 100%;
    max-width: 550px;
    background: #1c2028;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Header de la modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-main);
}

#closeEditModal {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

#closeEditModal:hover{
    color: white;
}