/**
 * Frontend styles for Notifiche Qappuccino
 * Clean layout for use inside Elementor or any page.
 */

.nqapp-widget {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* -------------------------------------------------------------------------
   Status badge
   ------------------------------------------------------------------------- */

.nqapp-status-badge {
    padding: 10px 14px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.nqapp-status-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nqapp-status-spinner {
    display: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.12);
    border-top-color: #1976d2;
    border-radius: 50%;
    animation: nqapp-spin 0.75s linear infinite;
    vertical-align: middle;
}

.nqapp-status-badge--working .nqapp-status-spinner {
    display: inline-block;
}

.nqapp-status-badge--working.nqapp-status-badge--inactive {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #90caf9;
}

@keyframes nqapp-spin {
    to {
        transform: rotate(360deg);
    }
}

.nqapp-status-badge--active {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.nqapp-status-badge--inactive {
    background-color: #fff8e1;
    color: #f57f17;
    border-color: #ffecb3;
}

.nqapp-status-badge--denied {
    background-color: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.nqapp-status-badge--unsupported {
    background-color: #f5f5f5;
    color: #616161;
    border-color: #e0e0e0;
}

/* -------------------------------------------------------------------------
   Instructions area (single line or info box)
   ------------------------------------------------------------------------- */

.nqapp-instructions {
    margin-bottom: 16px;
}

/* Centered short line (desktop/Android); Safari/iPhone box stays left-aligned below */
.nqapp-instructions-line {
    margin: 0 0 12px;
    font-size: 14px;
    color: #424242;
    line-height: 1.5;
    text-align: center;
}

/* Info boxes: neutral, success, warning, error */
.nqapp-box {
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.nqapp-box p {
    margin: 0 0 8px;
}

.nqapp-box p:last-child {
    margin-bottom: 0;
}

.nqapp-box--neutral {
    background-color: #f5f5f5;
    color: #424242;
    border-color: #e0e0e0;
}

.nqapp-box--success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.nqapp-box--warning {
    background-color: #fff8e1;
    color: #f57f17;
    border-color: #ffecb3;
}

.nqapp-box--error {
    background-color: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

.nqapp-list-steps {
    margin: 10px 0 0 20px;
    padding: 0;
}

.nqapp-list-steps li {
    margin-bottom: 8px;
    color: #424242;
}

.nqapp-hint {
    font-size: 13px;
    color: #616161;
    margin-top: 10px;
    font-style: italic;
}

/* -------------------------------------------------------------------------
   Actions (buttons)
   ------------------------------------------------------------------------- */

.nqapp-actions {
    margin-bottom: 16px;
    text-align: center;
}

.nqapp-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.nqapp-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nqapp-button-primary {
    background-color: #1976d2;
    color: #fff;
}

.nqapp-button-primary:hover:not(:disabled) {
    background-color: #1565c0;
}

.nqapp-button-secondary {
    background-color: #616161;
    color: #fff;
}

.nqapp-button-secondary:hover:not(:disabled) {
    background-color: #424242;
}

/* -------------------------------------------------------------------------
   Message toast (success, error, info)
   ------------------------------------------------------------------------- */

.nqapp-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
    text-align: center;
}

.nqapp-message--success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.nqapp-message--error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.nqapp-message--info {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.nqapp-message--warning {
    background-color: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffecb3;
}
