/* ===== NESPOCASH INTEGRATION STYLES ===== */

/* Settings Tab */
.nespocash-settings {
    padding: 0.5rem;
}

.connection-status-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--clouds);
    border-radius: var(--radius);
    border: 1px solid var(--silver);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background-color: var(--emerald);
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

.status-indicator.offline {
    background-color: var(--alizarin);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.status-text {
    font-weight: 500;
    color: var(--text);
}

/* Document Actions */
.action-disabled .action-btn {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--clouds);
}

.action-disabled .action-btn:hover {
    background: var(--clouds);
}

/* Processing Modal */
.document-summary {
    background: var(--clouds);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--silver);
}

.summary-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-weight: 600;
    width: 120px;
    color: var(--text-light);
}

.summary-value {
    flex: 1;
    color: var(--text);
    font-weight: 500;
}

.form-section {
    margin-bottom: 1.5rem;
}

/* Status Messages */
.status-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.status-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.status-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.status-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: var(--text-light);
}

/* Login Modal */
#loginMessage {
    margin-top: 1rem;
}

/* Account Select Dropdowns */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Transaction Notes Textarea */
#transactionNotes {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background: var(--clouds);
    border-radius: var(--radius);
    border: 1px solid var(--silver);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

/* Toast overrides */
#toastContainer .toast.nespocash {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left: 4px solid #4CAF50;
}

/* Processing Animation */
@keyframes processing-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.processing {
    animation: processing-pulse 1.5s infinite;
}

/* Badge for processed documents */
.nespocash-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #27ae60;
    margin-left: 0.5rem;
}

.nespocash-badge::before {
    content: "✓";
    font-weight: bold;
}