/* Container */
.main-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh
}

.container {
    margin: auto;
    width: 100%;
    max-width: 35rem;
    padding-top:40px;
    padding-bottom: 40px;
}

/* Main Card */
.card {
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

/* Header Section */
.header {
    background: #000000;
    padding: 25px;
    text-align: center;
    color: white;
}

.navigation-buttons {
    display: flex;
    justify-content: end;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.progress-container {
    margin-bottom: 20px;
}

 .nav-button.secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    margin-left: 15px;
    margin-bottom: 15px;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button.primary {
    background-color: #000000;
    color: white;
    border: none;
    margin-right: 15px;
    margin-bottom: 15px;
}

.progress-circle.active {
    background-color: #000000;
    color: white;
}

.progress-line {
    width: 60px;
    height: 2px;
    background-color: #e5e7eb;
    transition: all 0.3s ease;
}

.progress-line.active {
    background-color: #000000;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.connection-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.success-banner {
    padding-bottom: 10px;
}

.welcome-features {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.feature-item h3 {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-item p {
    color: #6b7280;
    line-height: 1.6;
}

.title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #ffffff;
    font-size: 0.775rem;
    line-height: 1.5;
}

/* Content Section */
.content {
    padding: 1.5rem;
}

/* Status Section */
.status-section {
    margin-bottom: 1.5rem;
}

/* Mapping Content */
.mapping-section {
    display: grid;
    gap: 15px;
}

.sync-settings-content {
    display: grid;
    gap: 30px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* Progress Bar Styles */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.progress-step {
    display: flex;
    align-items: center;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.status-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.status-complete {
    background-color: #3b82f6;
}

.status-pending {
    background-color: #f59e0b;
    animation: pulse 2s infinite;
}

.test-connection-button {
    background-color: #000000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.test-connection-button:hover:not(:disabled) {
    background-color: #000000;
}

.test-connection-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.save-connection-button {
    background-color: #000000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.save-connection-button:hover:not(:disabled) {
    background-color: #7f7f7f;
}

.save-connection-button:disabled {
    background-color: #7f7f7f;
    cursor: not-allowed;
}

.connection-actions {
    display: flex;
    justify-content: center;
    gap:10px
}

.connection-status-card {
    padding-top: 10px;
    padding-bottom: 10px;
}
.error-banner {
    padding-bottom: 10px;
}

/* Sync Setting Section */
.checkbox-group,
.radio-group {
    display: grid;
    margin-top: 15px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-content {
    flex: 1;
}

.status-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.status-value {
    color: #111827;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    background-color: #f8fafc;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.status-pending-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clock-icon {
    width: 1rem;
    height: 1rem;
    color: #f59e0b;
}

.status-pending-text {
    color: #d97706;
    font-weight: 500;
    font-size: 14px;
}

/* Action Button */
.auth-button {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: white;
    font-weight: 600;
    padding: 15px;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0px;
    position: relative;
    overflow: hidden;
}

.button-text {
    transition: opacity 0.2s ease;
}

.arrow-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.auth-button.loading .button-text,
.auth-button.loading .arrow-icon {
    opacity: 0;
}

.auth-button.loading .spinner {
    display: block;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .header {
        padding: 1.5rem 1rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .title {
        font-size: 1.25rem;
    }
    
    .auth-button {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}


/* Error Handling Styles */
.main-error-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh
}

.error-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 35rem;
    border: 1px solid #e5e5e7;
}

.error-header {
    background: linear-gradient(135deg, #bf1c13 0%, #ff3b30 100%);
    color: white;
    text-align: center;
    padding: 30px;
    position: relative;
}

.error-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.error-header p {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.4;
}

.error-content {
    padding: 25px 15px;
}

.error-message {
    background: #ffe6e6;
    border: 1px solid #ffb3b3;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.error-message h3 {
    color: #d70015;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message h3::before {
    content: '⚠';
    color: #d70015;
    font-size: 14px;
}

.error-message p {
    color: #8b0000;
    font-size: 13px;
    line-height: 1.5;
}

.error-retry-button {
    width: 100%;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.error-retry-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

@media (max-width: 600px) {
    .error-container {
        border-radius: 12px;
    }

    .error-header {
        padding: 32px 24px;
    }

    .error-content {
        padding: 24px;
    }

    .error-header h1 {
        font-size: 24px;
    }

    .error-header p {
        font-size: 15px;
    }
}