/**
 * ============================================
 * CELL LINKING SYSTEM - STYLES
 * ============================================
 */

/* Modal Styles */
.cell-settings-modal,
.cell-link-modal {
    font-family: var(--font-body);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Info Section */
.cell-info-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #f59e0b;
}

/* Link Preview */
.link-preview {
    margin-top: 16px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--color-blue);
    border-radius: var(--radius-sm);
}

.link-preview strong {
    color: var(--color-blue);
}

.link-preview p {
    margin: 8px 0 0 0;
    font-size: 13px;
    line-height: 1.5;
}

/* Alert Boxes */
.alert {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-top: 16px;
}

.alert .material-icons {
    font-size: 20px;
    flex-shrink: 0;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
}

.alert ul {
    margin: 4px 0 0 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 2px;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--color-blue);
    color: var(--text-primary);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border-left: 3px solid #f59e0b;
    color: var(--text-primary);
}

.alert-warning .material-icons {
    color: #f59e0b;
}

/* Cell Link Badge */
.cell-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-blue);
    margin-bottom: 12px;
}

.cell-link-badge .material-icons {
    font-size: 16px;
}

/* Output Hidden Message */
.cell-output-hidden {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    margin-top: 12px;
}

.cell-output-hidden .material-icons {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.cell-output-hidden span:not(.material-icons) {
    font-size: 14px;
    font-weight: 500;
}

.cell-output-hidden small {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.7;
}

/* Link Error */
.cell-link-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--color-red);
    border-radius: var(--radius-sm);
    color: var(--color-red);
    font-size: 13px;
    margin-top: 12px;
}

.cell-link-error .material-icons {
    font-size: 20px;
}

/* Animations */
@keyframes pulse-link {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.cell.executing-linked .cell-link-badge {
    animation: pulse-link 1s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .cell-link-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .alert {
        flex-direction: column;
    }
}