/* Binding Page Specific Styles */

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-link:hover {
    background-color: rgba(255, 179, 71, 0.2);
}

#binding-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.binding-card {
    background-color: var(--card-bg);
    border-radius: 25px;
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    border: 3px solid var(--primary-color);
}

/* Line Bot Info */
.line-bot-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px dashed var(--secondary-color);
}

.line-bot-info h2 {
    color: var(--text-color);
    margin-bottom: 20px;
}

.line-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5em;
    font-weight: 700;
    color: #06C755;
    /* LINE brand color */
    margin-bottom: 25px;
}

.line-id svg {
    fill: #06C755;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-code {
    width: 250px;
    height: 250px;
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-hint {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

/* Binding Status Container */
.binding-status-container {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pending Status */
.binding-pending {
    text-align: center;
    width: 100%;
}

.binding-pending h3 {
    color: var(--text-color);
    margin-bottom: 20px;
}

.binding-code-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.binding-code {
    font-size: 2.5em;
    font-weight: 700;
    color: white;
    letter-spacing: 5px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.binding-instruction {
    color: #666;
    margin: 15px 0;
    line-height: 1.6;
}

.copy-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Noto Sans TC', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.copy-btn:hover {
    background-color: #66cc66;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Completed Status */
.binding-completed {
    text-align: center;
    width: 100%;
}

.binding-completed h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 20px auto;
    stroke: var(--accent-color);
}

.unbind-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Noto Sans TC', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.unbind-btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Confirmation Modal */
.confirm-modal {
    max-width: 400px;
    padding: 30px;
    text-align: center;
}

.confirm-modal h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.confirm-modal p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Noto Sans TC', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #666;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.btn-danger {
    background-color: #ff6b6b;
    color: white;
}

.btn-danger:hover {
    background-color: #ff5252;
}

/* Toast Notification */
/* Toast Notification */
.toast {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #5bc95b 100%);
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hidden {
    opacity: 0;
    transform: translateY(-100%);
}

/* Error State */
.binding-error {
    text-align: center;
    color: #ff6b6b;
}

.binding-error svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    stroke: #ff6b6b;
}