/* Inbox Modal Styles */

/* Overlay del modal */
.inbox-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.inbox-modal-overlay.active {
    display: flex;
}

/* Contenedor del modal */
.inbox-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header del modal */
.inbox-modal-header {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.inbox-modal-header .icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.inbox-modal-header .title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.inbox-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.inbox-modal-close:hover {
    background: #e9ecef;
}

/* Body del modal */
.inbox-modal-body {
    padding: 20px;
}

.inbox-modal-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.inbox-modal-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Botones de acción rápida */
.inbox-quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.inbox-quick-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.inbox-quick-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Footer del modal */
.inbox-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.inbox-modal-disclaimer {
    width: 100%;
    margin: 8px 0 0;
    font-size: 11px;
    color: #6c757d;
    line-height: 1.4;
    text-align: center;
}

.inbox-modal-disclaimer a {
    color: #007bff;
    text-decoration: none;
}

.inbox-modal-disclaimer a:hover {
    text-decoration: underline;
}

.inbox-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.inbox-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.inbox-btn-secondary:hover {
    background: #e9ecef;
}

.inbox-btn-primary {
    background: #007bff;
    color: white;
}

.inbox-btn-primary:hover {
    background: #0056b3;
}

.inbox-btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Success message styles */
.inbox-success-message {
    padding: 40px 20px;
    text-align: center;
}

.inbox-success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 48px;
    color: white;
    font-weight: bold;
}

.inbox-success-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .inbox-modal {
        width: 95%;
        margin: 10px;
    }
    
    .inbox-modal-header .title {
        font-size: 14px;
    }
}
