/* ============================================ */
/* BRIDGE - Data Bridge Platform Styles         */
/* ============================================ */

/* Common input style */
.bridge-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bridge-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* File upload label */
.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #6b7280;
    transition: border-color 0.2s, background-color 0.2s;
    min-width: 200px;
}
.upload-label:hover {
    border-color: #93c5fd;
    background-color: #eff6ff;
}
.upload-label.has-file {
    border-color: #22c55e;
    background-color: #f0fdf4;
    color: #15803d;
}

/* Checkbox card style */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
    background: #f9fafb;
}
.checkbox-label:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}
.checkbox-label:has(input:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Toast */
#successToast, #errorToast {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Form card hover */
.bg-white.rounded-xl:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

/* Add method button */
#addMethodBtn:hover {
    border-color: #3b82f6;
}

/* Remove method button */
.remove-method-btn:hover span {
    text-decoration: underline;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}
.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
